X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/268c232e62981d322f66e2d3f75455c9fe56aa65..6760cb07d6b57be16928d95339d71e57c4e24f36:/src/xbt_str_unit.c diff --git a/src/xbt_str_unit.c b/src/xbt_str_unit.c index 669b5f1422..68cc6f8030 100644 --- a/src/xbt_str_unit.c +++ b/src/xbt_str_unit.c @@ -8,7 +8,7 @@ /* GENERATED FILE, DO NOT EDIT */ /*******************************/ -# 423 "xbt/xbt_str.c" +# 426 "/home/navarrop/Developments/simgrid/src/xbt/xbt_str.c" #include "xbt/str.h" #define mytest(name, input, expected) \ @@ -21,7 +21,8 @@ free(s); \ xbt_dynar_free(&d); -XBT_TEST_UNIT("xbt_str_split_quoted",test_split_quoted, "test the function xbt_str_split_quoted") { +XBT_TEST_UNIT("xbt_str_split_quoted", test_split_quoted,"test the function xbt_str_split_quoted") +{ xbt_dynar_t d; char *s; @@ -35,8 +36,10 @@ XBT_TEST_UNIT("xbt_str_split_quoted",test_split_quoted, "test the function xbt_s mytest("Single quotes", "'toto tutu' tata", "toto tutuXXXtata"); mytest("Double quotes", "\"toto tutu\" tata", "toto tutuXXXtata"); mytest("Mixed quotes", "\"toto' 'tutu\" tata", "toto' 'tutuXXXtata"); - mytest("Backslashed quotes", "\\'toto tutu\\' tata", "'totoXXXtutu'XXXtata"); - mytest("Backslashed quotes + quotes", "'toto \\'tutu' tata", "toto 'tutuXXXtata"); + mytest("Backslashed quotes", "\\'toto tutu\\' tata", + "'totoXXXtutu'XXXtata"); + mytest("Backslashed quotes + quotes", "'toto \\'tutu' tata", + "toto 'tutuXXXtata"); } @@ -50,7 +53,8 @@ XBT_TEST_UNIT("xbt_str_split_quoted",test_split_quoted, "test the function xbt_s free(s); \ xbt_dynar_free(&d); -XBT_TEST_UNIT("xbt_str_split_str",test_split_str, "test the function xbt_str_split_str") { +XBT_TEST_UNIT("xbt_str_split_str", test_split_str,"test the function xbt_str_split_str") +{ xbt_dynar_t d; char *s; @@ -58,7 +62,7 @@ XBT_TEST_UNIT("xbt_str_split_str",test_split_str, "test the function xbt_str_spl mytest_str("Empty string", "", "##", ""); mytest_str("Empty separator", "toto", "", "toto"); mytest_str("String with no separator in it", "toto", "##", "toto"); - mytest_str("Basic test", "toto##tutu", "##", "totoXXXtutu"); + mytest_str("Basic test", "toto##tutu", "##", "totoXXXtutu"); } /*******************************/ /* GENERATED FILE, DO NOT EDIT */