Lines Matching defs:test
21 static struct test {
366 static int test_one(struct test *test)
371 vphn_unpack_associativity(test->input, output);
374 if (len != test->expected[0]) {
375 printf("expected %d elements, got %d\n", test->expected[0],
382 if (val != test->expected[i]) {
384 test->expected[i]);
394 static struct test *test;
396 for (test = all_tests; test->descr; test++) {
399 ret = test_one(test);
400 test_finish(test->descr, ret);
410 return test_harness(test_vphn, "test-vphn");