Toolbox snapshot
The Reactive C++ Toolbox
|
Go to the source code of this file.
Functions | |
BOOST_AUTO_TEST_CASE (StobCase) | |
BOOST_CHECK_EQUAL (stod("1"sv), 1) | |
BOOST_CHECK_EQUAL (stod("-1"sv), -1) | |
BOOST_CHECK_EQUAL (stod("1.23E2"sv), 123) | |
BOOST_CHECK_EQUAL (stod("-1.23E2"sv), -123) | |
BOOST_CHECK_EQUAL (stod("1.23E1"sv), 12.3) | |
BOOST_CHECK_EQUAL (stod("-1.23E1"sv), -12.3) | |
BOOST_CHECK_EQUAL (stod("1.23"sv), 1.23) | |
BOOST_CHECK_EQUAL (stod("-1.23"sv), -1.23) | |
BOOST_CHECK (isnan(stod(""sv, numeric_limits< double >::quiet_NaN()))) | |
BOOST_CHECK (isnan(stod("abc"sv, numeric_limits< double >::quiet_NaN()))) | |
BOOST_CHECK_EQUAL (stod("1"sv, numeric_limits< double >::quiet_NaN()), 1) | |
BOOST_CHECK_EQUAL (ston< double >("1"sv), 1) | |
BOOST_CHECK_EQUAL (ston< double >("-1"sv), -1) | |
BOOST_CHECK_EQUAL (ston< double >("1.23E2"sv), 123) | |
BOOST_CHECK_EQUAL (ston< double >("-1.23E2"sv), -123) | |
BOOST_CHECK_EQUAL (ston< double >("1.23E1"sv), 12.3) | |
BOOST_CHECK_EQUAL (ston< double >("-1.23E1"sv), -12.3) | |
BOOST_CHECK_EQUAL (ston< double >("1.23"sv), 1.23) | |
BOOST_CHECK_EQUAL (ston< double >("-1.23"sv), -1.23) | |
BOOST_AUTO_TEST_CASE (StonSubstrCase) | |
BOOST_AUTO_TEST_CASE (Stoi16Case) | |
BOOST_AUTO_TEST_CASE (Stoi32Case) | |
BOOST_AUTO_TEST_CASE (Stoi32NegSignCase) | |
BOOST_AUTO_TEST_CASE (Stoi64Case) | |
BOOST_AUTO_TEST_CASE (Stou16Case) | |
BOOST_AUTO_TEST_CASE (Stou32Case) | |
BOOST_AUTO_TEST_CASE (Stou64Case) | |
BOOST_AUTO_TEST_CASE (HexDigitsCase) | |
BOOST_AUTO_TEST_CASE (DecDigitsCase) | |
BOOST_AUTO_TEST_CASE | ( | StobCase | ) |
Definition at line 29 of file Utility.ut.cpp.
BOOST_CHECK_EQUAL | ( | stod("1"sv) | , |
1 | |||
) |
BOOST_CHECK_EQUAL | ( | stod("-1"sv) | , |
- | 1 | ||
) |
BOOST_CHECK_EQUAL | ( | stod("1.23E2"sv) | , |
123 | |||
) |
BOOST_CHECK_EQUAL | ( | stod("-1.23E2"sv) | , |
- | 123 | ||
) |
BOOST_CHECK_EQUAL | ( | stod("1.23E1"sv) | , |
12. | 3 | ||
) |
BOOST_CHECK_EQUAL | ( | stod("-1.23E1"sv) | , |
-12. | 3 | ||
) |
BOOST_CHECK_EQUAL | ( | stod("1.23"sv) | , |
1. | 23 | ||
) |
BOOST_CHECK_EQUAL | ( | stod("-1.23"sv) | , |
-1. | 23 | ||
) |
BOOST_CHECK | ( | isnan(stod(""sv, numeric_limits< double >::quiet_NaN())) | ) |
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().
BOOST_CHECK | ( | isnan(stod("abc"sv, numeric_limits< double >::quiet_NaN())) | ) |
BOOST_CHECK_EQUAL | ( | stod("1"sv, numeric_limits< double >::quiet_NaN()) | , |
1 | |||
) |
BOOST_CHECK_EQUAL | ( | ston< double > | "1"sv, |
1 | |||
) |
BOOST_CHECK_EQUAL | ( | ston< double > | "-1"sv, |
- | 1 | ||
) |
BOOST_CHECK_EQUAL | ( | ston< double > | "1.23E2"sv, |
123 | |||
) |
BOOST_CHECK_EQUAL | ( | ston< double > | "-1.23E2"sv, |
- | 123 | ||
) |
BOOST_CHECK_EQUAL | ( | ston< double > | "1.23E1"sv, |
12. | 3 | ||
) |
BOOST_CHECK_EQUAL | ( | ston< double > | "-1.23E1"sv, |
-12. | 3 | ||
) |
BOOST_CHECK_EQUAL | ( | ston< double > | "1.23"sv, |
1. | 23 | ||
) |
BOOST_CHECK_EQUAL | ( | ston< double > | "-1.23"sv, |
-1. | 23 | ||
) |
BOOST_AUTO_TEST_CASE | ( | StonSubstrCase | ) |
Definition at line 102 of file Utility.ut.cpp.
BOOST_AUTO_TEST_CASE | ( | Stoi16Case | ) |
Definition at line 109 of file Utility.ut.cpp.
BOOST_AUTO_TEST_CASE | ( | Stoi32Case | ) |
Definition at line 122 of file Utility.ut.cpp.
BOOST_AUTO_TEST_CASE | ( | Stoi32NegSignCase | ) |
Definition at line 135 of file Utility.ut.cpp.
BOOST_AUTO_TEST_CASE | ( | Stoi64Case | ) |
Definition at line 145 of file Utility.ut.cpp.
BOOST_AUTO_TEST_CASE | ( | Stou16Case | ) |
Definition at line 158 of file Utility.ut.cpp.
BOOST_AUTO_TEST_CASE | ( | Stou32Case | ) |
Definition at line 170 of file Utility.ut.cpp.
BOOST_AUTO_TEST_CASE | ( | Stou64Case | ) |
Definition at line 182 of file Utility.ut.cpp.
BOOST_AUTO_TEST_CASE | ( | HexDigitsCase | ) |
Definition at line 194 of file Utility.ut.cpp.
BOOST_AUTO_TEST_CASE | ( | DecDigitsCase | ) |
Definition at line 211 of file Utility.ut.cpp.