Lines Matching refs:nsta
28 nstime_t nsta, nstb; in TEST_BEGIN() local
30 nstime_init2(&nsta, 42, 43); in TEST_BEGIN()
32 nstime_copy(&nstb, &nsta); in TEST_BEGIN()
40 nstime_t nsta, nstb; in TEST_BEGIN() local
42 nstime_init2(&nsta, 42, 43); in TEST_BEGIN()
43 nstime_copy(&nstb, &nsta); in TEST_BEGIN()
44 assert_d_eq(nstime_compare(&nsta, &nstb), 0, "Times should be equal"); in TEST_BEGIN()
45 assert_d_eq(nstime_compare(&nstb, &nsta), 0, "Times should be equal"); in TEST_BEGIN()
48 assert_d_eq(nstime_compare(&nsta, &nstb), 1, in TEST_BEGIN()
50 assert_d_eq(nstime_compare(&nstb, &nsta), -1, in TEST_BEGIN()
54 assert_d_eq(nstime_compare(&nsta, &nstb), -1, in TEST_BEGIN()
56 assert_d_eq(nstime_compare(&nstb, &nsta), 1, in TEST_BEGIN()
60 assert_d_eq(nstime_compare(&nsta, &nstb), 1, in TEST_BEGIN()
62 assert_d_eq(nstime_compare(&nstb, &nsta), -1, in TEST_BEGIN()
66 assert_d_eq(nstime_compare(&nsta, &nstb), -1, in TEST_BEGIN()
68 assert_d_eq(nstime_compare(&nstb, &nsta), 1, in TEST_BEGIN()
75 nstime_t nsta, nstb; in TEST_BEGIN() local
77 nstime_init2(&nsta, 42, 43); in TEST_BEGIN()
78 nstime_copy(&nstb, &nsta); in TEST_BEGIN()
79 nstime_add(&nsta, &nstb); in TEST_BEGIN()
81 assert_d_eq(nstime_compare(&nsta, &nstb), 0, in TEST_BEGIN()
84 nstime_init2(&nsta, 42, BILLION - 1); in TEST_BEGIN()
85 nstime_copy(&nstb, &nsta); in TEST_BEGIN()
86 nstime_add(&nsta, &nstb); in TEST_BEGIN()
88 assert_d_eq(nstime_compare(&nsta, &nstb), 0, in TEST_BEGIN()
95 nstime_t nsta, nstb; in TEST_BEGIN() local
97 nstime_init2(&nsta, 42, 43); in TEST_BEGIN()
98 nstime_copy(&nstb, &nsta); in TEST_BEGIN()
99 nstime_subtract(&nsta, &nstb); in TEST_BEGIN()
101 assert_d_eq(nstime_compare(&nsta, &nstb), 0, in TEST_BEGIN()
104 nstime_init2(&nsta, 42, 43); in TEST_BEGIN()
106 nstime_subtract(&nsta, &nstb); in TEST_BEGIN()
108 assert_d_eq(nstime_compare(&nsta, &nstb), 0, in TEST_BEGIN()
115 nstime_t nsta, nstb; in TEST_BEGIN() local
117 nstime_init2(&nsta, 42, 43); in TEST_BEGIN()
118 nstime_imultiply(&nsta, 10); in TEST_BEGIN()
120 assert_d_eq(nstime_compare(&nsta, &nstb), 0, in TEST_BEGIN()
123 nstime_init2(&nsta, 42, 666666666); in TEST_BEGIN()
124 nstime_imultiply(&nsta, 3); in TEST_BEGIN()
126 assert_d_eq(nstime_compare(&nsta, &nstb), 0, in TEST_BEGIN()
133 nstime_t nsta, nstb; in TEST_BEGIN() local
135 nstime_init2(&nsta, 42, 43); in TEST_BEGIN()
136 nstime_copy(&nstb, &nsta); in TEST_BEGIN()
137 nstime_imultiply(&nsta, 10); in TEST_BEGIN()
138 nstime_idivide(&nsta, 10); in TEST_BEGIN()
139 assert_d_eq(nstime_compare(&nsta, &nstb), 0, in TEST_BEGIN()
142 nstime_init2(&nsta, 42, 666666666); in TEST_BEGIN()
143 nstime_copy(&nstb, &nsta); in TEST_BEGIN()
144 nstime_imultiply(&nsta, 3); in TEST_BEGIN()
145 nstime_idivide(&nsta, 3); in TEST_BEGIN()
146 assert_d_eq(nstime_compare(&nsta, &nstb), 0, in TEST_BEGIN()
153 nstime_t nsta, nstb, nstc; in TEST_BEGIN() local
155 nstime_init2(&nsta, 42, 43); in TEST_BEGIN()
156 nstime_copy(&nstb, &nsta); in TEST_BEGIN()
157 nstime_imultiply(&nsta, 10); in TEST_BEGIN()
158 assert_u64_eq(nstime_divide(&nsta, &nstb), 10, in TEST_BEGIN()
161 nstime_init2(&nsta, 42, 43); in TEST_BEGIN()
162 nstime_copy(&nstb, &nsta); in TEST_BEGIN()
163 nstime_imultiply(&nsta, 10); in TEST_BEGIN()
165 nstime_add(&nsta, &nstc); in TEST_BEGIN()
166 assert_u64_eq(nstime_divide(&nsta, &nstb), 10, in TEST_BEGIN()
169 nstime_init2(&nsta, 42, 43); in TEST_BEGIN()
170 nstime_copy(&nstb, &nsta); in TEST_BEGIN()
171 nstime_imultiply(&nsta, 10); in TEST_BEGIN()
173 nstime_subtract(&nsta, &nstc); in TEST_BEGIN()
174 assert_u64_eq(nstime_divide(&nsta, &nstb), 9, in TEST_BEGIN()