From 9e160fac16e81c42ac368f450b9cc4df29753e00 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sun, 27 Mar 2016 12:54:10 +0200 Subject: Do not assume that days always have 86400 seconds Make that date membership is computed correctly, even if a day has less than 86400 seconds (e.g. after changing clocks). Reported-by: Hakan Jerning Signed-off-by: Lukas Fleischer --- test/regress-001.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 test/regress-001.sh (limited to 'test/regress-001.sh') diff --git a/test/regress-001.sh b/test/regress-001.sh new file mode 100755 index 0000000..3ad6deb --- /dev/null +++ b/test/regress-001.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +. "${TEST_INIT:-./test-init.sh}" + +if [ "$1" = 'actual' ]; then + "$CALCURSE" --read-only -D "$DATA_DIR"/ -c "$DATA_DIR/apts-regress-001" \ + -Q --filter-type=cal --from=2016-03-27 --days=2 +elif [ "$1" = 'expected' ]; then + cat <