Skip to content

Commit

Permalink
Removed wrong comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
joto committed Jun 27, 2014
1 parent 854c5a7 commit 8b6c0b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,9 @@ TEST_CASE( "implicit conversion to first type in variant type list", "[variant][
REQUIRE_THROWS(var.get<double>());
}

// test case to help debugging https://github.com/mapbox/variant/issues/25
TEST_CASE( "implicit conversion to unsigned char", "[variant][implicit conversion]" ) {
typedef util::variant<unsigned char> variant_type;
variant_type var = 100.0; // converted to unsigned char, even if it doesn't fit
variant_type var = 100.0;
CHECK(var.get<unsigned char>() == static_cast<unsigned char>(100.0));
CHECK(var.get<unsigned char>() == static_cast<unsigned char>(static_cast<unsigned int>(100.0)));
}
Expand Down

0 comments on commit 8b6c0b3

Please sign in to comment.