Skip to content

Commit

Permalink
increased test coverage of enumeration_wrapper.h
Browse files Browse the repository at this point in the history
  • Loading branch information
acki-m committed Feb 2, 2016
1 parent 1824d28 commit 553185c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/unit_tests/enumeration/enumeration_conversion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ TEST_CASE("enumeration - name_to_value()", "[enumeration]")
{
enumeration e = type::get_by_name("access_t").get_enumeration();

// osx test..
CHECK(e.name_to_value("read").is_type<access_t>() == true);

REQUIRE(e.name_to_value("read").is_type<access_t>() == true);
REQUIRE(e.name_to_value("write").is_type<access_t>() == true);
REQUIRE(e.name_to_value("write").is_type<access_t>() == true);
Expand All @@ -96,6 +93,9 @@ TEST_CASE("enumeration - name_to_value()", "[enumeration]")
CHECK(e.name_to_value("write").get_value<access_t>() == access_t::write);
CHECK(e.name_to_value("exec").get_value<access_t>() == access_t::exec);

// invalid
CHECK(e.name_to_value("some name").is_valid() == false);

// negative
e = type::get_by_name("access_unknown").get_enumeration();
REQUIRE(e.name_to_value("write").is_type<access_t>() == false);
Expand Down

0 comments on commit 553185c

Please sign in to comment.