• Home
  • Raw
  • Download

Lines Matching refs:TEST

9 #define TEST(r, f, x, m) ( \  macro
42 TEST(i, !!(f=writetemp(" 42")), 1, "failed to make temp file"); in main()
45 TEST(i, fwscanf(f, L" %n%*d%n", &x, &y), 0, "%d != %d"); in main()
46 TEST(i, x, 6, "%d != %d"); in main()
47 TEST(i, y, 8, "%d != %d"); in main()
48 TEST(i, ftell(f), 8, "%d != %d"); in main()
49 TEST(i, !!feof(f), 1, "%d != %d"); in main()
53 TEST(i, !!(f=writetemp("[abc123]....x")), 1, "failed to make temp file"); in main()
56 TEST(i, fwscanf(f, L"%10[^]]%n%10[].]%n", a, &x, b, &y), 2, "%d != %d"); in main()
59 TEST(i, x, 7, "%d != %d"); in main()
60 TEST(i, y, 12, "%d != %d"); in main()
61 TEST(i, ftell(f), 12, "%d != %d"); in main()
62 TEST(i, feof(f), 0, "%d != %d"); in main()
63 TEST(i, fgetwc(f), 'x', "%d != %d"); in main()
67 TEST(i, !!(f=writetemp("0x1p 12")), 1, "failed to make temp file"); in main()
71 TEST(i, fwscanf(f, L"%lf%n %d", &u, &x, &y), 0, "%d != %d"); in main()
72 TEST(u, u, -1.0, "%g != %g"); in main()
73 TEST(i, x, -1, "%d != %d"); in main()
74 TEST(i, y, -1, "%d != %d"); in main()
75 TEST(i, ftell(f), 4, "%d != %d"); in main()
76 TEST(i, feof(f), 0, "%d != %d"); in main()
77 TEST(i, fgetwc(f), ' ', "%d != %d"); in main()
79 TEST(i, fgetwc(f), '0', "%d != %d"); in main()
80 TEST(i, fgetwc(f), 'x', "%d != %d"); in main()
81 TEST(i, fwscanf(f, L"%lf%n%c %d", &u, &x, a, &y), 3, "%d != %d"); in main()
82 TEST(u, u, 1.0, "%g != %g"); in main()
83 TEST(i, x, 1, "%d != %d"); in main()
84 TEST(i, a[0], 'p', "%d != %d"); in main()
85 TEST(i, y, 12, "%d != %d"); in main()
86 TEST(i, ftell(f), 7, "%d != %d"); in main()
87 TEST(i, !!feof(f), 1, "%d != %d"); in main()
91 TEST(i, !!(f=writetemp("0x.1p4 012")), 1, "failed to make temp file"); in main()
95 TEST(i, fwscanf(f, L"%lf%n %i", &u, &x, &y), 2, "%d != %d"); in main()
96 TEST(u, u, 1.0, "%g != %g"); in main()
97 TEST(i, x, 6, "%d != %d"); in main()
98 TEST(i, y, 10, "%d != %d"); in main()
99 TEST(i, ftell(f), 13, "%d != %d"); in main()
100 TEST(i, !!feof(f), 1, "%d != %d"); in main()
104 TEST(i, !!(f=writetemp("0xx")), 1, "failed to make temp file"); in main()
107 TEST(i, fwscanf(f, L"%x%n", &x, &y), 0, "%d != %d"); in main()
108 TEST(i, x, -1, "%d != %d"); in main()
109 TEST(i, y, -1, "%d != %d"); in main()
110 TEST(i, ftell(f), 2, "%d != %d"); in main()
111 TEST(i, feof(f), 0, "%d != %d"); in main()