Add parseUInt utility function

There is an increasing number of places where Catch2 wants to parse
strings into numbers, but being stuck in C++14 world, we do not
have good stdlib facilities to do this (`strtoul` and `stoul`
are both bad).
This commit is contained in:
Martin Hořeňovský
2022-10-20 15:06:26 +02:00
parent 38d926090a
commit d7341b5dc1
25 changed files with 550 additions and 14 deletions

View File

@@ -1394,6 +1394,6 @@ due to unexpected exception with message:
Why would you throw a std::string?
===============================================================================
test cases: 394 | 318 passed | 69 failed | 7 failed as expected
assertions: 2284 | 2129 passed | 128 failed | 27 failed as expected
test cases: 395 | 319 passed | 69 failed | 7 failed as expected
assertions: 2295 | 2140 passed | 128 failed | 27 failed as expected