Checking that Parser initially is case-sensitive.

This commit is contained in:
2016-06-22 09:14:01 +01:00
parent d9578b6f1c
commit 73c9d6c1f3
3 changed files with 10 additions and 0 deletions

View File

@@ -11,6 +11,8 @@ TEST(UtilsTests, ParseSimple)
std::stringstream s("identifier 5 \n-51\t 0 1 expected unexpected");
plasp::utils::Parser p("input", s);
ASSERT_TRUE(p.isCaseSensitive());
ASSERT_EQ(p.parse<std::string>(), "identifier");
ASSERT_EQ(p.parse<size_t>(), 5u);
ASSERT_EQ(p.parse<int>(), -51);