Skip to content
Snippets Groups Projects
Commit 9531db83 authored by Adam Wardyński's avatar Adam Wardyński
Browse files

add some empty set tests for ToUpper and ToLower

parent ec4caf8d
No related merge requests found
......@@ -101,6 +101,26 @@ BOOST_FIXTURE_TEST_CASE(upper_locale, StrSetFix)
BOOST_CHECK(upperset.equals(*to_upper.apply(sc)));
}
BOOST_FIXTURE_TEST_CASE(lower_empty, StrSetFix)
{
StrSet emptyset;
ToLower to_lower(boost::shared_ptr<Function<StrSet> >(
new Constant<StrSet>(emptyset)));
BOOST_CHECK(emptyset.equals(*to_lower.apply(sc)));
}
BOOST_FIXTURE_TEST_CASE(upper_empty, StrSetFix)
{
StrSet emptyset;
ToUpper to_upper(boost::shared_ptr<Function<StrSet> >(
new Constant<StrSet>(emptyset)));
BOOST_CHECK(emptyset.equals(*to_upper.apply(sc)));
}
//------ to_string test cases -------
BOOST_FIXTURE_TEST_CASE(lower_to_string, StrSetFix)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment