Using unsigned constants in tests to avoid warnings with Google Test.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user