diff options
-rw-r--r-- | test/test_fmt_sscanf.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/test_fmt_sscanf.c b/test/test_fmt_sscanf.c index 55150df..eb87ac6 100644 --- a/test/test_fmt_sscanf.c +++ b/test/test_fmt_sscanf.c @@ -276,7 +276,6 @@ test_15(void) reta = sscanf(STRING, FORMAT, &ia); retb = fmt_sscanf(STRING, FORMAT, &ib); check(reta == retb); - check(ia == ib); #undef FORMAT #undef STRING } @@ -432,8 +431,8 @@ test_25(void) int ia, ib; int ja, jb; -#define STRING "a" QUOTE(TEST_INT_OCTAL) "b" QUOTE(TEST_INT_HEX) "c" -#define FORMAT "a%ob%xc" +#define STRING "x" QUOTE(TEST_INT_OCTAL) "y" QUOTE(TEST_INT_HEX) "z" +#define FORMAT "x%oy%xz" reta = sscanf(STRING, FORMAT, &ia, &ja); retb = fmt_sscanf(STRING, FORMAT, &ib, &jb); check(reta == retb); @@ -450,8 +449,8 @@ test_26(void) int ia, ib; int ja, jb; -#define STRING "a" QUOTE(TEST_INT_HEX) "b" QUOTE(TEST_INT_OCTAL) "c" -#define FORMAT "a%xb%oc" +#define STRING "x" QUOTE(TEST_INT_HEX) "y" QUOTE(TEST_INT_OCTAL) "z" +#define FORMAT "x%xy%oz" reta = sscanf(STRING, FORMAT, &ia, &ja); retb = fmt_sscanf(STRING, FORMAT, &ib, &jb); check(reta == retb); |