diff options
author | Lars Henriksen <LarsHenriksen@get2net.dk> | 2019-04-28 00:20:37 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2019-05-20 09:37:17 -0400 |
commit | 52d52208c879c63f5e33fb4f743014b8585dc05a (patch) | |
tree | db336924874617e138b3cedca73d8c1f3c8d0520 /test/recur-006.sh | |
parent | 2be32c4bda5236ec19e0f3c544adcd2974684f50 (diff) | |
download | calcurse-52d52208c879c63f5e33fb4f743014b8585dc05a.tar.gz calcurse-52d52208c879c63f5e33fb4f743014b8585dc05a.zip |
Test cases for impossible dates in recurrence rule
Signed-off-by: Lars Henriksen <LarsHenriksen@get2net.dk>
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'test/recur-006.sh')
-rwxr-xr-x | test/recur-006.sh | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/test/recur-006.sh b/test/recur-006.sh new file mode 100755 index 0000000..3486391 --- /dev/null +++ b/test/recur-006.sh @@ -0,0 +1,50 @@ +#!/bin/sh +# Ignore impossible dates. + +. "${TEST_INIT:-./test-init.sh}" + +if [ "$1" = 'actual' ]; then + "$CALCURSE" --read-only -D "$DATA_DIR"/ -c "$DATA_DIR/apts-recur" \ + --startday=5/31/2019 --range=365 --filter-type recur-apt \ + --filter-pattern impossible + "$CALCURSE" --read-only -D "$DATA_DIR"/ -c "$DATA_DIR/apts-recur" \ + --startday=2/1/2020 --range=1500 --filter-type recur-event \ + --filter-pattern February +elif [ "$1" = 'expected' ]; then + cat <<EOD +05/31/19: + - 07:25 -> 07:45 + Ignore impossible dates + +07/31/19: + - 07:25 -> 07:45 + Ignore impossible dates + +08/31/19: + - 07:25 -> 07:45 + Ignore impossible dates + +10/31/19: + - 07:25 -> 07:45 + Ignore impossible dates + +12/31/19: + - 07:25 -> 07:45 + Ignore impossible dates + +01/31/20: + - 07:25 -> 07:45 + Ignore impossible dates + +03/31/20: + - 07:25 -> 07:45 + Ignore impossible dates +02/29/20: + * Every 29 February since 2020 + +02/29/24: + * Every 29 February since 2020 +EOD +else + ./run-test "$0" +fi |