Skip to content

Commit

Permalink
fixup - test with string
Browse files Browse the repository at this point in the history
  • Loading branch information
wthrowe committed Feb 15, 2024
1 parent cb14346 commit 811df74
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/Unit/Options/Test_Auto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,14 @@ void test_error_message() {
(TestHelpers::test_creation<Options::Auto<double, LabelThatShouldPrint>>(
"NotValid")),
Catch::Matchers::ContainsSubstring("PrintedName") and
Catch::Matchers::ContainsSubstring("double") and
Catch::Matchers::ContainsSubstring("to type double") and
Catch::Matchers::ContainsSubstring("NotValid"));
CHECK_THROWS_WITH((TestHelpers::test_creation<
Options::Auto<std::string, LabelThatShouldPrint>>(
"[not, a, string]")),
Catch::Matchers::ContainsSubstring("PrintedName") and
Catch::Matchers::ContainsSubstring("to type string") and
Catch::Matchers::ContainsSubstring("not, a, string"));
}
} // namespace

Expand Down

0 comments on commit 811df74

Please sign in to comment.