From 9e4419826b3e23c63567591701a2834a837da98e Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Fri, 17 Oct 2025 09:46:56 +0800 Subject: Toml remove String. --- test/toml/ParserTest.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'test/toml/ParserTest.cpp') diff --git a/test/toml/ParserTest.cpp b/test/toml/ParserTest.cpp index b35b932a..4a4ba212 100644 --- a/test/toml/ParserTest.cpp +++ b/test/toml/ParserTest.cpp @@ -7,7 +7,7 @@ using namespace cru::toml; TEST_CASE("CruTomlParserTest Simple", "[toml]") { TomlParser parser( - uR"( + R"( a1 = v1 a2 = v2 # comment @@ -22,10 +22,10 @@ a5 = v5 a6 = v6 )"); auto document = parser.Parse(); - REQUIRE(document.GetSection(u"")->GetValue(u"a1") == u"v1"); - REQUIRE(document.GetSection(u"")->GetValue(u"a2") == u"v2"); - REQUIRE(document.GetSection(u"s1")->GetValue(u"a3") == u"v3"); - REQUIRE(document.GetSection(u"s1")->GetValue(u"a4") == u"v4"); - REQUIRE(document.GetSection(u"s2")->GetValue(u"a5") == u"v5"); - REQUIRE(document.GetSection(u"s2")->GetValue(u"a6") == u"v6"); + REQUIRE(document.GetSection("")->GetValue("a1") == "v1"); + REQUIRE(document.GetSection("")->GetValue("a2") == "v2"); + REQUIRE(document.GetSection("s1")->GetValue("a3") == "v3"); + REQUIRE(document.GetSection("s1")->GetValue("a4") == "v4"); + REQUIRE(document.GetSection("s2")->GetValue("a5") == "v5"); + REQUIRE(document.GetSection("s2")->GetValue("a6") == "v6"); } -- cgit v1.2.3