Skip to content

Commit

Permalink
fixed unit test for mingw
Browse files Browse the repository at this point in the history
  • Loading branch information
acki-m committed Aug 6, 2017
1 parent ce4b322 commit 7a47bb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/unit_tests/variant/variant_cmp_greater_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,15 +317,15 @@ TEST_CASE("variant::operator>() - raw arrays", "[variant]")

SECTION("register less than operator - std::array")
{
std::array<int, 5> array_a = { {1, 2, 3, 4, 5} };
std::array<int, 5> array_b = { {1, 2, 0, 4, 5} };
std::array<int, 6> array_a = { {1, 2, 3, 4, 5, 6} };
std::array<int, 6> array_b = { {1, 2, 0, 4, 5, 6} };

variant a = array_a;
variant b = array_b;

CHECK((a > b) == false);

type::register_comparators<std::array<int, 5>>();
type::register_comparators<std::array<int, 6>>();

CHECK((a > b) == true);
}
Expand Down

0 comments on commit 7a47bb0

Please sign in to comment.