File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ endfunction(fast_float_add_cpp_test)
5656fast_float_add_cpp_test(example_test)
5757fast_float_add_cpp_test(example_comma_test)
5858fast_float_add_cpp_test(basictest)
59+ fast_float_add_cpp_test(long_test)
5960fast_float_add_cpp_test(powersoffive_hardround)
6061fast_float_add_cpp_test(string_test)
6162
Original file line number Diff line number Diff line change 11#include " fast_float/fast_float.h"
22
3+ #include < iostream>
34#include < vector>
45
56inline void Assert (bool Assertion) {
@@ -14,6 +15,7 @@ bool test() {
1415 const char * end = input.data () + input.size ();
1516 for (size_t i = 0 ; i < answers.size (); i++) {
1617 T result_value;
18+ while ((begin < end) && (std::isspace (*begin))) { begin++; }
1719 auto result = fast_float::from_chars (begin, end,
1820 result_value);
1921 if (result.ec != std::errc ()) {
You can’t perform that action at this time.
0 commit comments