mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-04-29 12:13:52 +00:00
Fix a few warnings, add to Changelog
This commit is contained in:
parent
f88aa33908
commit
43b451e327
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
* Better CMake named target (CLI11)
|
* Better CMake named target (CLI11)
|
||||||
* More warnings added, fixed
|
* More warnings added, fixed
|
||||||
|
* Ini output now includes `=false` when `default_also` is true
|
||||||
|
|
||||||
## Version 0.8
|
## Version 0.8
|
||||||
|
|
||||||
|
@ -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((long double) 9.12, x);
|
EXPECT_FLOAT_EQ(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