diff options
| author | ljfa-ag <ljfa-ag@web.de> | 2015-07-04 10:04:52 +0200 |
|---|---|---|
| committer | ljfa-ag <ljfa-ag@web.de> | 2015-07-04 10:04:52 +0200 |
| commit | 3a360962bc6a9c5b105cab490cf3bcf74e6959e3 (patch) | |
| tree | 971af7ffeb65b9b7f4ca13e0878e1aeac25ea46f /test | |
| parent | cdcbcd5adf8b987baaf602450d129afcf4d8fdf7 (diff) | |
| download | Project-Tick-3a360962bc6a9c5b105cab490cf3bcf74e6959e3.tar.gz Project-Tick-3a360962bc6a9c5b105cab490cf3bcf74e6959e3.zip | |
Fix test
Diffstat (limited to 'test')
| -rw-r--r-- | test/nbttest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/nbttest.cpp b/test/nbttest.cpp index 859b41f7a8..d8f0f68d15 100644 --- a/test/nbttest.cpp +++ b/test/nbttest.cpp @@ -91,7 +91,7 @@ void test_tag_compound() EXPECT_EXCEPTION(comp["foo"] = 32, std::bad_cast); comp["foo"] = int8_t(32); - ASSERT(int8_t(comp["foo"]) == 32); + ASSERT(int16_t(comp["foo"]) == 32); ASSERT(comp["bar"].get_type() == tag_type::String); ASSERT(std::string(comp["bar"]) == "baz"); @@ -99,13 +99,13 @@ void test_tag_compound() EXPECT_EXCEPTION(comp["bar"] = -128, std::bad_cast); comp["bar"] = "barbaz"; - ASSERT(std::string(comp["foo"]) == "barbaz"); + ASSERT(std::string(comp["bar"]) == "barbaz"); ASSERT(comp["baz"].get_type() == tag_type::Double); ASSERT(double(comp["baz"]) == -2.0); EXPECT_EXCEPTION(float(comp["baz"]), std::bad_cast); - comp["quux"] = tag_compound{/*{"Hello", "World"}, {"zero", 0}*/}; + comp["quux"] = tag_compound{{"Hello", "World"}, {"zero", 0}}; ASSERT(comp.at("quux").get_type() == tag_type::Compound); ASSERT(std::string(comp["quux"].at("Hello")) == "World"); |
