• Home
  • Raw
  • Download

Lines Matching refs:TEST

28 #define TESTR(X) do { TEST(X); RESET(); } while(0)
69 TEST(calendar() == cal); in main()
70 TEST(calendar(loc) == cal); in main()
71 TEST(calendar(tz) == cal); in main()
72 TEST(calendar(loc,"GMT+01:00") != cal); in main()
73 TEST(calendar(g("ru_RU.UTF-8")) != cal); in main()
75 TEST(cal.minimum(month())==0); in main()
76 TEST(cal.maximum(month())==11); in main()
77 TEST(cal.minimum(day())==1); in main()
78 TEST(cal.greatest_minimum(day())==1); in main()
79 TEST(cal.least_maximum(day())==28); in main()
80 TEST(cal.maximum(day())==31); in main()
82 TEST(calendar(g("ar_EG.UTF-8")).first_day_of_week() == 7); in main()
83 TEST(calendar(g("he_IL.UTF-8")).first_day_of_week() == 1); in main()
84 TEST(calendar(g("ru_RU.UTF-8")).first_day_of_week() == 2); in main()
96 TEST(ss.str() == "1970-02-05"); in main()
100 TEST( ss.str() == "1970-02-05 15:33:13"); ss.str(""); in main()
114 TEST(time_point.minimum(day())==1); in main()
115 TEST(time_point.maximum(day())==28); in main()
129 TEST((time_point + month()) / month() == 2); in main()
130 TEST(month(time_point + month(1)) == 2); in main()
131 TEST(time_point / month() == 1); in main()
132 TEST((time_point - month()) / month()== 0); in main()
133 TEST(time_point / month() == 1); in main()
134 TEST((time_point << month()) / month()== 2); in main()
135 TEST(time_point / month()== 1); in main()
136 TEST((time_point >> month()) / month()== 0); in main()
137 TEST(time_point / month()== 1); in main()
141 TEST( (time_point + 2 * hour() - time_point) / minute() == 120); in main()
142 TEST( (time_point + month()- time_point) / day() == 28); in main()
143 TEST( (time_point + 2* month()- (time_point+month())) / day() == 31); in main()
144 TEST( day(time_point + 2* month()- (time_point+month())) == 31); in main()
151 TEST(time_point == time_point); in main()
152 TEST(!(time_point != time_point)); in main()
153 TEST(time_point.get(hour()) == 15); in main()
154 TEST(time_point/hour() == 15); in main()
155 TEST(time_point+year() != time_point); in main()
156 TEST(time_point - minute() <= time_point); in main()
157 TEST(time_point <= time_point); in main()
158 TEST(time_point + minute() >= time_point); in main()
159 TEST(time_point >= time_point); in main()
161 TEST(time_point < time_point + second()); in main()
162 TEST(!(time_point < time_point - second())); in main()
163 TEST(time_point > time_point - second()); in main()
164 TEST(!(time_point > time_point + second())); in main()
166 TEST(time_point.get(day()) == 5); in main()
167 TEST(time_point.get(year()) == 1970); in main()
169 TEST(time_point.get(era()) == 1); in main()
170 TEST(time_point.get(year()) == 1970); in main()
171 TEST(time_point.get(extended_year()) == 1970); in main()
174 TEST(time_point.get(era()) == 0); in main()
175 TEST(time_point.get(year()) == 4); in main()
178 TEST(time_point.get(month()) == 1); in main()
179 TEST(time_point.get(day()) == 5); in main()
180 TEST(time_point.get(day_of_year()) == 36); in main()
181 TEST(time_point.get(day_of_week()) == 5); in main()
182 TEST(time_point.get(day_of_week_in_month())==1); in main()
184 TEST(time_point.get(day_of_week_local()) == 4); in main()
186 TEST(time_point.get(day_of_week()) == 5); in main()
187 TEST(time_point.get(week_of_year()) == 1); in main()
188 TEST(time_point.get(week_of_month()) == 1); in main()
190 TEST(time_point.get(day()) == 4); in main()
191 TEST(time_point.get(week_of_year()) == 1); in main()
192 TEST(time_point.get(week_of_month()) == 1); in main()
194 TEST(time_point.get(week_of_year()) == 2); in main()
195 TEST(time_point.get(week_of_month()) == 2); in main()
199 TEST(time_point.get(week_of_year()) == 6); in main()
202 TEST(time_point.get(week_of_month()) == 1); in main()
206 TEST(time_point.get(week_of_month()) == 2); in main()
212 TEST(time_point.get(week_of_year()) == 53); in main()
215 TEST(time_point.get(week_of_year()) == 1); in main()
221 TEST(time_point.get(week_of_year()) == 1); in main()
224 TEST(time_point.get(week_of_year()) == 2); in main()
229 TEST(time_point.get(week_of_year()) == 1); in main()
232 TEST(time_point.get(week_of_year()) == 2); in main()
237 TEST(time_point.get(week_of_year()) == 2); in main()
240 TEST(time_point.get(week_of_year()) == 3); in main()
243 TEST(time_point.get(hour()) == 15); in main()
244 TEST(date_time(a_datetime,calendar("GMT+01:00")).get(hour()) ==16); in main()
245 TEST(time_point.get(hour_12()) == 3); in main()
246 TEST(time_point.get(am_pm()) == 1); in main()
247 TEST(time_point.get(minute()) == 33); in main()
248 TEST(time_point.get(second()) == 13); in main()
249 TEST(date_time(year()* 1984 + february() + day()).get(week_of_year())==5); in main()
250 TEST(time_point.get(week_of_month()) == 1); in main()
258 TEST((time_point + year() *1 - hour() * 1 - time_point) / year() == 0); in main()
259 TEST((time_point + year() *1 - time_point) / year() == 1); in main()
260 TEST((time_point + year() *1 + hour() * 1 - time_point) / year() == 1); in main()
261 TEST((time_point - year() *1 + hour() * 1 - time_point) / year() == 0); in main()
262 TEST((time_point - year() *1 - time_point) / year() == -1); in main()
263 TEST((time_point - year() *1 - hour() * 1 - time_point) / year() == -1); in main()
279 TEST(time_point.get(year()) == 2011); in main()
280 TEST(time_point.get(month()) == 2); // march in main()
281 TEST(time_point.get(day()) == 5); in main()
286 TEST(time_point.get(year()) == 2011); in main()
287 TEST(time_point.get(month()) == 1); // february in main()
288 TEST(time_point.get(day()) == 5); in main()