Lines Matching refs:tests
256 struct parser_test tests[] = {
283 for (i = 0; tests[i].tag != NULL; i++) {
284 dpi = parse_mouse_dpi_property(tests[i].tag);
285 ck_assert_int_eq(dpi, tests[i].expected_value);
295 struct parser_test tests[] = {
313 for (i = 0; tests[i].tag != NULL; i++) {
314 angle = parse_mouse_wheel_click_angle_property(tests[i].tag);
315 ck_assert_int_eq(angle, tests[i].expected_value);
322 struct parser_test tests[] = {
340 for (i = 0; tests[i].tag != NULL; i++) {
341 angle = parse_mouse_wheel_click_count_property(tests[i].tag);
342 ck_assert_int_eq(angle, tests[i].expected_value);
356 } tests[] = {
379 for (i = 0; tests[i].tag != NULL; i++) {
381 success = parse_dimension_property(tests[i].tag, &x, &y);
382 ck_assert(success == tests[i].success);
384 ck_assert_int_eq(x, tests[i].x);
385 ck_assert_int_eq(y, tests[i].y);
403 } tests[] = {
416 for (i = 0; tests[i].tag != NULL; i++) {
418 success = parse_switch_reliability_property(tests[i].tag, &r);
419 ck_assert(success == tests[i].success);
421 ck_assert_int_eq(r, tests[i].reliability);
443 } tests[] = {
460 for (i = 0; tests[i].prop != NULL; i++) {
463 success = parse_calibration_property(tests[i].prop,
465 ck_assert_int_eq(success, tests[i].success);
467 rc = memcmp(tests[i].values,
492 } tests[] = {
508 for (i = 0; tests[i].tag != NULL; i++) {
510 success = parse_range_property(tests[i].tag, &hi, &lo);
511 ck_assert(success == tests[i].success);
513 ck_assert_int_eq(hi, tests[i].hi);
514 ck_assert_int_eq(lo, tests[i].lo);
532 } tests[] = {
543 for (i = 0; tests[i].tag != NULL; i++) {
545 success = parse_boolean_property(tests[i].tag, &b);
546 ck_assert(success == tests[i].success);
548 ck_assert_int_eq(b, tests[i].b);
565 } tests[] = {
612 for (int i = 0; tests[i].prop; i++) {
617 t = &tests[i];
643 } tests[] = {
663 for (int i = 0; tests[i].prop; i++) {
668 t = &tests[i];
690 } tests[] = {
738 ARRAY_FOR_EACH(tests, t) {
776 } tests[] = {
791 for (int i = 0; tests[i].unit != NULL; i++) {
794 ht = to_human_time(tests[i].interval);
795 ck_assert_int_eq(ht.value, tests[i].value);
796 ck_assert_str_eq(ht.unit, tests[i].unit);
809 struct atoi_test tests[] = {
830 for (int i = 0; tests[i].str != NULL; i++) {
832 success = safe_atoi(tests[i].str, &v);
833 ck_assert(success == tests[i].success);
835 ck_assert_int_eq(v, tests[i].val);
844 struct atoi_test tests[] = {
864 for (int i = 0; tests[i].str != NULL; i++) {
866 success = safe_atoi_base(tests[i].str, &v, 16);
867 ck_assert(success == tests[i].success);
869 ck_assert_int_eq(v, tests[i].val);
878 struct atoi_test tests[] = {
901 for (int i = 0; tests[i].str != NULL; i++) {
903 success = safe_atoi_base(tests[i].str, &v, 8);
904 ck_assert(success == tests[i].success);
906 ck_assert_int_eq(v, tests[i].val);
921 struct atou_test tests[] = {
941 for (int i = 0; tests[i].str != NULL; i++) {
943 success = safe_atou(tests[i].str, &v);
944 ck_assert(success == tests[i].success);
946 ck_assert_int_eq(v, tests[i].val);
955 struct atou_test tests[] = {
975 for (int i = 0; tests[i].str != NULL; i++) {
977 success = safe_atou_base(tests[i].str, &v, 16);
978 ck_assert(success == tests[i].success);
980 ck_assert_int_eq(v, tests[i].val);
989 struct atou_test tests[] = {
1012 for (int i = 0; tests[i].str != NULL; i++) {
1014 success = safe_atou_base(tests[i].str, &v, 8);
1015 ck_assert(success == tests[i].success);
1017 ck_assert_int_eq(v, tests[i].val);
1030 } tests[] = {
1059 for (int i = 0; tests[i].str != NULL; i++) {
1061 success = safe_atod(tests[i].str, &v);
1062 ck_assert(success == tests[i].success);
1064 ck_assert_int_eq(v, tests[i].val);
1078 } tests[] = {
1098 struct strsplit_test *t = tests;
1130 } tests[] = {
1148 struct double_array_from_string_test *t = tests;
1172 } tests[] = {
1183 ARRAY_FOR_EACH(tests, t) {
1214 } tests[] = {
1229 struct kvsplit_dbl_test *t = tests;
1259 } tests[] = {
1273 struct strjoin_test *t = tests;
1297 } tests[] = {
1317 struct strstrip_test *t = tests;
1335 } tests[] = {
1346 for (struct strendswith_test *t = tests; t->string; t++) {
1359 } tests[] = {
1370 for (struct strstartswith_test *t = tests; t->string; t++) {
1382 } tests[] = {
1394 for (struct strsanitize_test *t = tests; t->string; t++) {
1407 } tests[] = {
1419 ARRAY_FOR_EACH(tests, t) {
1438 } tests[] = {
1450 ARRAY_FOR_EACH(tests, t) {
1468 } tests[] = {
1479 ARRAY_FOR_EACH(tests, t) {
1536 } tests[] = {
1550 ARRAY_FOR_EACH(tests, t) {
1564 } tests[] = {
1577 ARRAY_FOR_EACH(tests, t) {