1
0
mirror of https://github.com/CLIUtils/CLI11.git synced 2025-04-29 12:13:52 +00:00

Trying to fix VS warning

This commit is contained in:
Henry Fredrick Schreiner 2017-03-30 16:43:14 -04:00
parent 43b451e327
commit e772c0e43b

View File

@ -350,7 +350,7 @@ TEST(Types, LexicalCastDouble) {
std::string input = "9.12";
long double x;
EXPECT_TRUE(CLI::detail::lexical_cast(input, x));
EXPECT_FLOAT_EQ(9.12, (float) x);
EXPECT_FLOAT_EQ((float) 9.12, (float) x);
std::string bad_input = "hello";
EXPECT_FALSE(CLI::detail::lexical_cast(bad_input, x));