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:
parent
43b451e327
commit
e772c0e43b
@ -350,7 +350,7 @@ TEST(Types, LexicalCastDouble) {
|
|||||||
std::string input = "9.12";
|
std::string input = "9.12";
|
||||||
long double x;
|
long double x;
|
||||||
EXPECT_TRUE(CLI::detail::lexical_cast(input, 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";
|
std::string bad_input = "hello";
|
||||||
EXPECT_FALSE(CLI::detail::lexical_cast(bad_input, x));
|
EXPECT_FALSE(CLI::detail::lexical_cast(bad_input, x));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user