Add tests for leading space
Flamefire opened this issue · comments
Alexander Grund commented
A difference of std::from_chars
to std::strto*
(for both integer and float parsers) is
leading whitespace is not ignored.
I don't see that in the "invalid input" tests. I guess it makes sense to test that too.
And the documentation should cover what the input strings are expected to be. I've found the various format descriptions for floats in an extra section, but none for int. It only states stuff in terms of "matching the pattern", but for ints I wasn't able to find which pattern is used.