diff options
Diffstat (limited to 'tests.c')
-rw-r--r-- | tests.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests.c b/tests.c index 7d6d9c2..5831e3c 100644 --- a/tests.c +++ b/tests.c @@ -1,5 +1,6 @@ #include <stdio.h> #include <string.h> +#include <limits.h> #include "ste.h" @@ -16,7 +17,7 @@ is(const char *desc, int ok) int main() { - printf("1..55\n"); + printf("1..56\n"); printf("# stecpy\n"); @@ -159,5 +160,10 @@ main() is("77777777 = full", strlen(buf) == 15); is("return value is end", pos == end); + pos = buf2; + end = buf2 + sizeof buf2; + pos = steprl(pos, end, LONG_MIN); + is("can format LONG_MIN", buf2[0] == '-' && strlen(buf2) > 9); + return status; } |