6#include <catch2/catch_test_macros.hpp>
13TEST_CASE(
"stringToInteger : converts decimal numbers in range",
"[string]")
21TEST_CASE(
"stringToInteger : rejects what std::stoull accepts",
"[string]")
23 for (
auto const* text : {
"",
" 1",
"1 ",
"+1",
"-1",
"1x",
"0x10",
"1.0",
"1e3",
"18446744073709551616"})
32TEST_CASE(
"jsonStringToInteger : requires a JSON string",
"[string]")
T stringToInteger(std::string_view text, std::string_view name)
T jsonStringToInteger(picojson::value const &value, std::string_view name)
T stringToInteger(std::string_view text, std::string_view name)
T jsonStringToInteger(picojson::value const &value, std::string_view name)
TEST_CASE("stringToInteger : converts decimal numbers in range", "[string]")
REQUIRE(timeDelta< 33 '366 '667LL)