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)
56
56
fast_float_add_cpp_test (example_test )
57
57
fast_float_add_cpp_test (example_comma_test )
58
58
fast_float_add_cpp_test (basictest )
59
+ fast_float_add_cpp_test (long_test )
59
60
fast_float_add_cpp_test (powersoffive_hardround )
60
61
fast_float_add_cpp_test (string_test )
61
62
Original file line number Diff line number Diff line change 1
1
#include " fast_float/fast_float.h"
2
2
3
+ #include < iostream>
3
4
#include < vector>
4
5
5
6
inline void Assert (bool Assertion) {
@@ -14,6 +15,7 @@ bool test() {
14
15
const char * end = input.data () + input.size ();
15
16
for (size_t i = 0 ; i < answers.size (); i++) {
16
17
T result_value;
18
+ while ((begin < end) && (std::isspace (*begin))) { begin++; }
17
19
auto result = fast_float::from_chars (begin, end,
18
20
result_value);
19
21
if (result.ec != std::errc ()) {
You can’t perform that action at this time.
0 commit comments