X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2e60fe3cfd5cf5305888fcca0ae19700d808bb23..0abc9e8c70d2f3c5c98ed3429d4b630683f77c22:/src/xbt/xbt_str_test.cpp diff --git a/src/xbt/xbt_str_test.cpp b/src/xbt/xbt_str_test.cpp index 6a3bc606fd..8d4a82e2ea 100644 --- a/src/xbt/xbt_str_test.cpp +++ b/src/xbt/xbt_str_test.cpp @@ -35,7 +35,7 @@ template void test_parse_error(F function, const std::string& name, template void test_parse_ok(F function, const std::string& name, const char* str, T value) { INFO(name); - T variable = static_cast(-9999); + auto variable = static_cast(-9999); REQUIRE_NOTHROW(variable = function(str, "Parse error")); REQUIRE(variable == value); /* Fail to parse str */ } @@ -50,8 +50,8 @@ TEST_CASE("xbt::str: String Handling", "xbt_str") test_split_quoted("Useless backslashes", "\\t\\o\\t\\o \\t\\u\\t\\u", {"toto", "tutu"}); test_split_quoted("Protected space", "toto\\ tutu", {"toto tutu"}); test_split_quoted("Several spaces", "toto tutu", {"toto", "tutu"}); - test_split_quoted("LTriming", " toto tatu", {"toto", "tatu"}); - test_split_quoted("Triming", " toto tutu ", {"toto", "tutu"}); + test_split_quoted("LTrimming", " toto tatu", {"toto", "tatu"}); + test_split_quoted("Trimming", " toto tutu ", {"toto", "tutu"}); test_split_quoted("Single quotes", "'toto tutu' tata", {"toto tutu", "tata"}); test_split_quoted("Double quotes", "\"toto tutu\" tata", {"toto tutu", "tata"}); test_split_quoted("Mixed quotes", "\"toto' 'tutu\" tata", {"toto' 'tutu", "tata"});