Lines Matching defs:tests
44 } tests[] = {
63 for (i = 0; i < sizeof(tests)/sizeof(tests[0]); ++i) {
65 int val = parse_bytes (tests[i].str, tests[i].def_unit);
68 if (val != tests[i].val) {
70 tests[i].str,
71 tests[i].def_unit ? tests[i].def_unit : "none",
72 val, tests[i].val);
75 if (tests[i].canonicalp) {
76 len = unparse_bytes (tests[i].val, buf, sizeof(buf));
77 if (strcmp (tests[i].str, buf) != 0) {
79 tests[i].val, buf, tests[i].str);