mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-16 18:03:36 +00:00
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.
31 lines
414 B
Plaintext
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:
|
|
|