diff options
Diffstat (limited to 'tests/core/strtol.c')
| -rw-r--r-- | tests/core/strtol.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/core/strtol.c b/tests/core/strtol.c index 25dbe467c..cac6ca56b 100644 --- a/tests/core/strtol.c +++ b/tests/core/strtol.c @@ -30,6 +30,7 @@ void test_core_strtol__int32(void) { assert_l32_parses("123", 123, 10); assert_l32_parses(" +123 ", 123, 10); + assert_l32_parses(" -123 ", -123, 10); assert_l32_parses(" +2147483647 ", 2147483647, 10); assert_l32_parses(" -2147483648 ", -2147483648LL, 10); assert_l32_parses("A", 10, 16); @@ -46,6 +47,7 @@ void test_core_strtol__int64(void) { assert_l64_parses("123", 123, 10); assert_l64_parses(" +123 ", 123, 10); + assert_l64_parses(" -123 ", -123, 10); assert_l64_parses(" +2147483647 ", 2147483647, 10); assert_l64_parses(" -2147483648 ", -2147483648LL, 10); assert_l64_parses(" 2147483657 ", 2147483657LL, 10); |
