Skip to content
Snippets Groups Projects
Commit 4c825d14 authored by Dr. Felix Tobias Schindler's avatar Dr. Felix Tobias Schindler
Browse files

[test.common_string] add another bool test, refs #12

parent 553747d4
No related branches found
No related tags found
No related merge requests found
......@@ -155,7 +155,9 @@ TEST(StringTest, ConvertFrom)
EXPECT_EQ(-1, fromString<char>(toString(char(-1))));
EXPECT_THROW(fromString<char>("sd"), Dune::Stuff::Exceptions::wrong_input_given);
EXPECT_EQ(true, fromString<bool>("1"));
EXPECT_EQ(true, fromString<bool>("true"));
EXPECT_EQ(false, fromString<bool>("0"));
EXPECT_EQ(false, fromString<bool>("false"));
EXPECT_THROW(fromString<int>(""), std::invalid_argument);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment