Skip to content

Commit

Permalink
add lost test check + remove stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
artemp committed Oct 20, 2017
1 parent 4335780 commit 4b98c48
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/t/variant_alternative.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include <mapbox/variant_io.hpp>

#include <string>
#include <iostream>

TEST_CASE("variant alternative", "[types]")
{
Expand All @@ -13,11 +12,11 @@ TEST_CASE("variant alternative", "[types]")
using type_1 = mapbox::util::variant_alternative<1, variant_type>::type;
using type_2 = mapbox::util::variant_alternative<2, variant_type>::type;

std::cerr << typeid(type_0).name() << std::endl;
std::cerr << typeid(type_1).name() << std::endl;
std::cerr << typeid(type_2).name() << std::endl;
constexpr bool check_0 = std::is_same<int, type_0>::value;
constexpr bool check_1 = std::is_same<double, type_1>::value;
constexpr bool check_2 = std::is_same<std::string, type_2>::value;

CHECK(check_0);
CHECK(check_1);
CHECK(check_2);
}

0 comments on commit 4b98c48

Please sign in to comment.