未验证 提交 1758de1b 编写于 作者: Z zhangyan 提交者: GitHub

testcase 修改 (#7688)

上级 e8c0a740
...@@ -97,13 +97,13 @@ int strtol_entry(void) ...@@ -97,13 +97,13 @@ int strtol_entry(void)
TEST(l, strtol(s = "0F5F", &c, 16), 0x0f5fL, "%ld != %ld"); TEST(l, strtol(s = "0F5F", &c, 16), 0x0f5fL, "%ld != %ld");
TEST(l, strtol(s = "0xz", &c, 16), 0L, "%ld != %ld"); TEST(l, strtol(s = "0xz", &c, 16), 0L, "%ld != %ld");
TEST3(i, c - s, 1, "wrong final position %ld != %ld"); TEST2(i, c - s, 1, "wrong final position %ld != %ld");
TEST(l, strtol(s = "0x1234", &c, 16), 0x1234, "%ld != %ld"); TEST(l, strtol(s = "0x1234", &c, 16), 0x1234, "%ld != %ld");
TEST2(i, c - s, 6, "wrong final position %ld != %ld"); TEST2(i, c - s, 6, "wrong final position %ld != %ld");
c = NULL; c = NULL;
TEST3(l, strtol(s = "123", &c, 37), 0, "%ld != %ld"); TEST3(l, strtol(s = "123", &c, 36), 0, "%ld != %ld");
TEST3(i, c - s, 0, "wrong final position %d != %d"); TEST3(i, c - s, 0, "wrong final position %d != %d");
TEST(l, strtol(s = " 15437", &c, 8), 015437, "%ld != %ld"); TEST(l, strtol(s = " 15437", &c, 8), 015437, "%ld != %ld");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册