From 04487e3a75709655177620cf14268f33c23caeec Mon Sep 17 00:00:00 2001 From: TennesseeTrash Date: Mon, 9 Jun 2025 01:41:38 +0200 Subject: [PATCH] [SimpleConf] Small test tweak --- Tests/SimpleConf/Parsing.cpp | 4 ++-- Tests/SimpleConf/TestConfigs/Parsing-HashInKey.conf | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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