diff options
Diffstat (limited to 'test/toml/ParserTest.cpp')
-rw-r--r-- | test/toml/ParserTest.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/toml/ParserTest.cpp b/test/toml/ParserTest.cpp index 5e9b84b9..b35b932a 100644 --- a/test/toml/ParserTest.cpp +++ b/test/toml/ParserTest.cpp @@ -1,11 +1,11 @@ #include "cru/toml/TomlDocument.h" #include "cru/toml/TomlParser.h" -#include <gtest/gtest.h> +#include <catch2/catch_test_macros.hpp> using namespace cru::toml; -TEST(CruTomlParserTest, Simple) { +TEST_CASE("CruTomlParserTest Simple", "[toml]") { TomlParser parser( uR"( a1 = v1 @@ -22,10 +22,10 @@ a5 = v5 a6 = v6 )"); auto document = parser.Parse(); - ASSERT_EQ(document.GetSection(u"")->GetValue(u"a1"), u"v1"); - ASSERT_EQ(document.GetSection(u"")->GetValue(u"a2"), u"v2"); - ASSERT_EQ(document.GetSection(u"s1")->GetValue(u"a3"), u"v3"); - ASSERT_EQ(document.GetSection(u"s1")->GetValue(u"a4"), u"v4"); - ASSERT_EQ(document.GetSection(u"s2")->GetValue(u"a5"), u"v5"); - ASSERT_EQ(document.GetSection(u"s2")->GetValue(u"a6"), u"v6"); + 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"); } |