Lines Matching refs:test
20 static struct test { struct
365 static int test_one(struct test *test) in test_one() argument
370 vphn_unpack_associativity(test->input, output); in test_one()
373 if (len != test->expected[0]) { in test_one()
374 printf("expected %d elements, got %d\n", test->expected[0], in test_one()
381 if (val != test->expected[i]) { in test_one()
383 test->expected[i]); in test_one()
393 static struct test *test; in test_vphn() local
395 for (test = all_tests; test->descr; test++) { in test_vphn()
398 ret = test_one(test); in test_vphn()
399 test_finish(test->descr, ret); in test_vphn()