Parsing Comment Line: "; Comment parsing test; # ; //**/" Extracted comment: " Comment parsing test; # ; //**/" Parsing path line "[empty]" Parsing path component line "[empty]" Extracted path component "[empty" @ 6 Parsing path line "[nothing to see here/or]" Parsing path component line "[nothing to see here/or]" Extracted path component "[nothing to see here/or" @ 23 parsing Value "empty = """ Parsing path component line "empty = """ Extracted path component "empty" @ 6 preliminary value: """ parsing Value "see me =" Parsing path component line "see me =" Extracted path component "see me" @ 7 preliminary value: "" parsing Value "whats up = foobar # comment after" Parsing path component line "whats up = foobar # comment after" Extracted path component "whats up" @ 9 preliminary value: "foobar # comment after" Parsing path line "[thats gonna be hard/aint it ]" Parsing path component line "[thats gonna be hard/aint it ]" Extracted path component "[thats gonna be hard/aint it" @ 29 parsing Value "sensor = "1 2 3 4 5"" Parsing path component line "sensor = "1 2 3 4 5"" Extracted path component "sensor" @ 7 preliminary value: "1 2 3 4 5"" End value: "1 2 3 4 5" parsing Value "sensor = "5 4 3 2 1"" Parsing path component line "sensor = "5 4 3 2 1"" Extracted path component "sensor" @ 7 preliminary value: "5 4 3 2 1"" End value: "5 4 3 2 1" 3 3 3.0 [iwear/no-sensor] temporal1 = 3.0 temporal2 = 3.0 ;This is a comment for a path value [iwear/no-sensor/temporal] sub1 = 3.0 sub2 = 3.0 [iwear/sensor] ;This is a comment for the temporal2 value temporal2 = 3.0 ;This is a comment for a path value [//iwear/no-sensor/temporal] sub1 = 3.0 sub2 = 3.0 [//iwear/sensor] ;This is a comment for the temporal2 value temporal2 = 3.0 [//nothing to see here/or] empty = " see me = whats up = "foobar # comment after" [//thats gonna be hard/aint it ] sensor = "5 4 3 2 1" @@ -1,9 +1,13 @@ -; Comment parsing test; # ; //**/ -[empty] -[nothing to see here/or] -empty = "" -see me = -whats up = foobar # comment after -[thats gonna be hard/aint it ] -sensor = "1 2 3 4 5" -sensor = "5 4 3 2 1" + +[iwear/no-sensor] +temporal1 = 3.0 +temporal2 = 3.0 + +;This is a comment for a path value +[iwear/no-sensor/temporal] +sub1 = 3.0 +sub2 = 3.0 + +[iwear/sensor] +;This is a comment for the temporal2 value +temporal2 = 3.0 Testing on pre/pre_test1.ini Parsing path line "[]" Parsing path component line "[]" Extracted path component "[" @ 1 Parsing path line "[ ]" Parsing path component line "[ ]" Extracted path component "" @ 2 Parsing path line "[ / ]" Parsing path component line "[ / ]" Extracted path component "/" @ 4 @@ -1,4 +0,0 @@ - -[] -[ ] -[ / ] Testing on pre/pre_test2.ini Parsing path line "[]" Parsing path component line "[]" Extracted path component "[" @ 1 parsing Value "wo = "kommt das hin?"" Parsing path component line "wo = "kommt das hin?"" Extracted path component "wo" @ 3 preliminary value: "kommt das hin?"" End value: "kommt das hin?" @@ -1,2 +1,4 @@ -[] + +;Root Node +[/] wo = "kommt das hin?" Testing on pre/pre_test3.ini Parsing Comment Line: "; This should test what happens if an invalid character (? in this case) appears in a path" Extracted comment: " This should test what happens if an invalid character (? in this case) appears in a path" Parsing path line "[ /iwear/bored? ]" Parsing path component line "[ /iwear/bored? ]" Exception occured: Exception Name: iwear::parse_error At src/iniloader.cpp,l.98 (void iwear::IniLoader::parse_path_component(const std::string&, std::string&, size_t&, uint32_t)) At Input stream/file line1 Line causing the error: "[ /iwear/bored? ]" Expected instead:  Reason description : Invalid character for path No Backtrace Available @@ -1,2 +0,0 @@ -; This should test what happens if an invalid character (? in this case) appears in a path -[ /iwear/bored? ] Testing on pre/pre_test4.ini Parsing path line "[ /iwear/borked ]" Parsing path component line "[ /iwear/borked ]" Extracted path component "/iwear/borked" @ 16 Parsing Comment Line: "; This should test what happens if an invalid character (? in this case) appears in a variable name" Extracted comment: " This should test what happens if an invalid character (? in this case) appears in a variable name" parsing Value "foo?bar = barfuss" Parsing path component line "foo?bar = barfuss" Exception occured: Exception Name: iwear::parse_error At src/iniloader.cpp,l.98 (void iwear::IniLoader::parse_path_component(const std::string&, std::string&, size_t&, uint32_t)) At Input stream/file line2 Line causing the error: "foo?bar = barfuss" Expected instead:  Reason description : Invalid character for path No Backtrace Available @@ -1,3 +0,0 @@ -[ /iwear/borked ] -; This should test what happens if an invalid character (? in this case) appears in a variable name -foo?bar = barfuss Testing on pre/pre_test5.ini Parsing Comment Line: "; This tests how it behaves if path is given in " (it should not accept this)" Extracted comment: " This tests how it behaves if path is given in " (it should not accept this)" Parsing path line "[ "/" ]" Parsing path component line "[ "/" ]" Exception occured: Exception Name: iwear::parse_error At src/iniloader.cpp,l.98 (void iwear::IniLoader::parse_path_component(const std::string&, std::string&, size_t&, uint32_t)) At Input stream/file line1 Line causing the error: "[ "/" ]" Expected instead:  Reason description : Invalid character for path No Backtrace Available @@ -1,2 +0,0 @@ -; This tests how it behaves if path is given in " (it should not accept this) -[ "/" ] Testing on pre/pre_test6.ini Parsing path line "[ foobar/ barfoo ]" Parsing path component line "[ foobar/ barfoo ]" Extracted path component "foobar/ barfoo" @ 17 Parsing Comment Line: "# This test tests the # as comment character as well as giving a config value that has lots of special characters" Extracted comment: " This test tests the # as comment character as well as giving a config value that has lots of special characters" parsing Value "foobar = "test_*? =}][{[&%$§!äöü'+#*'-.,;::_´`€@¬¢»«æ@łß€ð€¢đ“€ŋ””ŋ”nħ←n←µµ→ø^¨~`¸\}][{¬½¼³²¹"" Parsing path component line "foobar = "test_*? =}][{[&%$§!äöü'+#*'-.,;::_´`€@¬¢»«æ@łß€ð€¢đ“€ŋ””ŋ”nħ←n←µµ→ø^¨~`¸\}][{¬½¼³²¹"" Extracted path component "foobar" @ 7 preliminary value: "test_*? =}][{[&%$§!äöü'+#*'-.,;::_´`€@¬¢»«æ@łß€ð€¢đ“€ŋ””ŋ”nħ←n←µµ→ø^¨~`¸\}][{¬½¼³²¹"" End value: "test_*? =}][{[&%$§!äöü'+#*'-.,;::_´`€@¬¢»«æ@łß€ð€¢đ“€ŋ””ŋ”nħ←n←µµ→ø^¨~`¸\}][{¬½¼³²¹" parsing Value "notok = barfoos" Parsing path component line "notok = barfoos" Extracted path component "notok" @ 6 preliminary value: "barfoos" parsing Value "ok = "not ok"" Parsing path component line "ok = "not ok"" Extracted path component "ok" @ 3 preliminary value: "not ok"" End value: "not ok" @@ -1,5 +1,6 @@ -[ foobar/ barfoo ] -# This test tests the # as comment character as well as giving a config value that has lots of special characters + +[//foobar/ barfoo ] +; This test tests the # as comment character as well as giving a config value that has lots of special characters foobar = "test_*? =}][{[&%$§!äöü'+#*'-.,;::_´`€@¬¢»«æ@łß€ð€¢đ“€ŋ””ŋ”nħ←n←µµ→ø^¨~`¸\}][{¬½¼³²¹" notok = barfoos ok = "not ok" Testing on pre/pre_test7.ini Parsing path line "[ foobar/ barfoo ]" Parsing path component line "[ foobar/ barfoo ]" Extracted path component "foobar/ barfoo" @ 17 Parsing Comment Line: "# This test tests the behaviour when we have some special escape character sequences" Extracted comment: " This test tests the behaviour when we have some special escape character sequences" parsing Value "foobar = "foo \r bar \n foobar \r\n bar foos \t nice"" Parsing path component line "foobar = "foo \r bar \n foobar \r\n bar foos \t nice"" Extracted path component "foobar" @ 7 preliminary value: "foo \r bar \n foobar \r\n bar foos \t nice"" End value: "foo bar foobar bar foos nice" parsing Value "foobar = "foobar\nfoobar\nbarfoos\tnice"" Parsing path component line "foobar = "foobar\nfoobar\nbarfoos\tnice"" Extracted path component "foobar" @ 7 preliminary value: "foobar\nfoobar\nbarfoos\tnice"" End value: "foobar foobar barfoos nice" parsing Value "notok = barfoos" Parsing path component line "notok = barfoos" Extracted path component "notok" @ 6 preliminary value: "barfoos" @@ -1,5 +1,5 @@ -[ foobar/ barfoo ] -# This test tests the behaviour when we have some special escape character sequences -foobar = "foo \r bar \n foobar \r\n bar foos \t nice" -foobar = "foobar\nfoobar\nbarfoos\tnice" + +[//foobar/ barfoo ] +; This test tests the behaviour when we have some special escape character sequences +foobar = "foobar\nfoobar\nbarfoos nice" notok = barfoos