Skip to content

Commit

Permalink
Update test/test_xinfo.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
tdegeus authored Nov 8, 2023
1 parent 70675d8 commit 3d85151
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions test/test_xinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,16 @@ namespace xt
ss << info(test) << std::endl;
}

// See https://github.com/xtensor-stack/xtensor/issues/2694
// TEST(xinfo, typename)
// {
// xarray<double> test = {{1, 2, 3}, {4, 5, 6}};
// auto t_s = type_to_string<typename decltype(test)::value_type>();
// std::string expected = "double";
// EXPECT_EQ(expected, t_s);
// }
// See https://github.com/xtensor-stack/xtensor/issues/2694
TEST(xinfo, typename)
{
xarray<double> test = {{1, 2, 3}, {4, 5, 6}};
auto t_s = type_to_string<typename decltype(test)::value_type>();
std::string expected = "double";
#if defined(__clang__)
WARN_EQ(expected, t_s);
#else
EXPECT_EQ(expected, t_s);
#endif
}
}

0 comments on commit 3d85151

Please sign in to comment.