Files
mercury/tests/hard_coded/fold_days.exp
Julien Fischer 3b29bd6ff4 Branches: main
Add predicates to the standard library's calendar module for folding over a
range of dates.

library/calendar.m:
   Add the new predicates: foldl_days/5, foldl2_days/7 and
   foldl3_days/9.

NEWS:
    Announce the addition.

tests/hard_coded/Mmakefile:
tests/hard_coded/fold_days.{m,exp}:
    Test the new predicates.
2013-01-29 12:50:24 +11:00

31 lines
414 B
Plaintext

Test 1:
1900-02-25 00:00:00
1900-02-26 00:00:00
1900-02-27 00:00:00
1900-02-28 00:00:00
1900-03-01 00:00:00
Test 2:
2000-02-25 00:00:00
2000-02-26 00:00:00
2000-02-27 00:00:00
2000-02-28 00:00:00
2000-02-29 00:00:00
2000-03-01 00:00:00
Test 3:
1977-02-25 00:00:00
1977-02-26 00:00:00
1977-02-27 00:00:00
1977-02-28 00:00:00
1977-03-01 00:00:00
Test 4:
1977-02-17 00:00:00
Test 5:
1977-02-17 00:00:00
Test 6: