Lines Matching refs:tests
47 } tests[] = {
66 for (i = 0; i < sizeof(tests)/sizeof(tests[0]); ++i) {
68 int val = parse_bytes (tests[i].str, tests[i].def_unit);
71 if (val != tests[i].val) {
73 tests[i].str,
74 tests[i].def_unit ? tests[i].def_unit : "none",
75 val, tests[i].val);
78 if (tests[i].canonicalp) {
79 len = unparse_bytes (tests[i].val, buf, sizeof(buf));
80 if (strcmp (tests[i].str, buf) != 0) {
82 tests[i].val, buf, tests[i].str);