diff --git a/Tests/SimpleConf/Parsing.cpp b/Tests/SimpleConf/Parsing.cpp index ec1a6b3..fd7efc7 100644 --- a/Tests/SimpleConf/Parsing.cpp +++ b/Tests/SimpleConf/Parsing.cpp @@ -14,10 +14,10 @@ TEST_CASE("Ensure robust parsing") ContainsSubstring("[Line 3]")); } - SECTION("Multiple assignments") + SECTION("Hash in key") { REQUIRE_THROWS_WITH(Garbage::SimpleConf(configs / "Parsing-HashInKey.conf"), - ContainsSubstring("[Line 5]")); + ContainsSubstring("[Line 6]")); } SECTION("No equals") diff --git a/Tests/SimpleConf/TestConfigs/Parsing-HashInKey.conf b/Tests/SimpleConf/TestConfigs/Parsing-HashInKey.conf index a4588f8..75ec8cf 100644 --- a/Tests/SimpleConf/TestConfigs/Parsing-HashInKey.conf +++ b/Tests/SimpleConf/TestConfigs/Parsing-HashInKey.conf @@ -1,5 +1,6 @@ # A simple config file that contains a # character inside the key +uhh= normal_key=normal_value another_key=another_value a_very_bas#ic_key=generic_value