Using unsigned constants in tests to avoid warnings with Google Test.

This commit is contained in:
2016-05-26 00:17:55 +02:00
parent 2281967176
commit d9a40af3f0
2 changed files with 25 additions and 25 deletions

View File

@@ -9,7 +9,7 @@ TEST(UtilsTests, ParseSimple)
std::stringstream stream("identifier 5 \n-51\t expected unexpected 100 -100");
ASSERT_EQ(plasp::utils::parse<std::string>(stream), "identifier");
ASSERT_EQ(plasp::utils::parse<size_t>(stream), 5);
ASSERT_EQ(plasp::utils::parse<size_t>(stream), 5u);
ASSERT_EQ(plasp::utils::parse<int>(stream), -51);
ASSERT_NO_THROW(plasp::utils::parseExpected<std::string>(stream, "expected"));
ASSERT_THROW(plasp::utils::parseExpected<std::string>(stream, "expected"), plasp::utils::ParserException);