Commit 87c181d6 authored by Pekka Pessi's avatar Pekka Pessi
Browse files

su_tag_test.c: fixed test cases for unimplemented t_scan() method

darcs-hash:20060830091313-65a35-f2603f53b739238dd2d831cf43a46909b5ee7b73.gz
parent f58f7b34
......@@ -586,19 +586,10 @@ static int test_scan(void)
TEST(t_scan(tag_p, NULL, " 000.000 ", &v), 1);
TEST(v, 0);
v = 1;
TEST(t_scan(tag_null, NULL, "NULL", &v), 0);
TEST(v, 0);
v = 1;
TEST(t_scan(tag_skip, NULL, "SKIP", &v), 0);
TEST(v, 0);
v = 1;
TEST(t_scan(tag_any, NULL, "any", &v), 0);
TEST(v, 0);
TEST(t_scan(tag_null, NULL, "NULL", &v), -2);
TEST(t_scan(tag_skip, NULL, "SKIP", &v), -2);
TEST(t_scan(tag_any, NULL, "any", &v), -2);
/* Test API checks for invalid values */
TEST(t_scan(NULL, NULL, "-1234", &v), -1);
TEST(t_scan(tag_a, NULL, NULL, &v), -1);
TEST(t_scan(tag_a, NULL, "-1234", NULL), -1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment