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