Expand test generator to support test_*to
- Id
- 740a0a8c27f802bc8e7438dfbff34e2ea61dd267
- Author
- Caio
- Commit time
- 2012-03-28T10:13:54-03:00
Modified tests/check_fuzzyclock.c
clock->tm_min = min;
clock->tm_hour = hour;
+ // The expected hour on the fuzzy output in this
+ // case is the next hour
+ if (!iter_on_hour && start >= 33) {
+ hour++;
+ }
+
for (i = start; i < end; i++) {
if (iter_on_hour) { clock->tm_hour = i; }
else { clock->tm_min = i; }