Add some more test cases.

This commit is contained in:
Dianne Skoll
2024-02-29 15:27:55 -05:00
parent 20d4626a71
commit bd6d695020
2 changed files with 118 additions and 1 deletions

View File

@@ -455,7 +455,7 @@ rm -rf include_dir/ww
echo JSONQUEUE | ../src/remind -z0 ../tests/queue1.rem 2>&1 | sed -e 's/"eventstart":"................"/"eventstart":"VOLATILE"/g' >> ../tests/test.out 2>&1
echo QUEUE | ../src/remind -zj ../tests/queue1.rem 2>&1 | sed -e 's/"eventstart":"................"/"eventstart":"VOLATILE"/g' >> ../tests/test.out 2>&1
# Test for bug that was fixed
# Test for leap year bug that was fixed
../src/remind -dte - 28 Feb 2024 <<'EOF' >> ../tests/test.out 2>&1
BANNER %
REM 29 MSG One
@@ -476,6 +476,26 @@ REM Friday 29 2024 MSG three
REM Friday 29 Feb 2024 MSG four
EOF
../src/remind -dte - 1 Mar 2024 <<'EOF' >> ../tests/test.out 2>&1
BANNER %
REM 29 MSG One
REM 29 Feb MSG two
REM 29 2024 MSG three
REM 29 Feb 2024 MSG four
REM Thursday 29 MSG One
REM Thursday 29 Feb MSG two
REM Thursday 29 2024 MSG three
REM Thursday 29 Feb 2024 MSG four
REM Wednesday 29 MSG One
REM Wednesday 29 Feb MSG two
REM Wednesday 29 2024 MSG three
REM Wednesday 29 Feb 2024 MSG four
REM Friday 29 MSG One
REM Friday 29 Feb MSG two
REM Friday 29 2024 MSG three
REM Friday 29 Feb 2024 MSG four
EOF
../src/remind -dte - 28 Feb 2025 <<'EOF' >> ../tests/test.out 2>&1
BANNER %
REM 29 MSG One
@@ -496,6 +516,26 @@ REM Friday 29 2025 MSG three
REM Friday 29 Feb 2025 MSG four
EOF
../src/remind -dte - 1 Mar 2025 <<'EOF' >> ../tests/test.out 2>&1
BANNER %
REM 29 MSG One
REM 29 Feb MSG two
REM 29 2025 MSG three
REM 29 Feb 2025 MSG four
REM Thursday 29 MSG One
REM Thursday 29 Feb MSG two
REM Thursday 29 2025 MSG three
REM Thursday 29 Feb 2025 MSG four
REM Wednesday 29 MSG One
REM Wednesday 29 Feb MSG two
REM Wednesday 29 2025 MSG three
REM Wednesday 29 Feb 2025 MSG four
REM Friday 29 MSG One
REM Friday 29 Feb MSG two
REM Friday 29 2025 MSG three
REM Friday 29 Feb 2025 MSG four
EOF
(echo 'BANNER %'; echo 'REM 29 MSG No bug') | ../src/remind -dt - >> ../tests/test.out 2>&1

View File

@@ -11782,6 +11782,83 @@ REM Friday 29 2024 MSG three
REM Friday 29 Feb 2024 MSG four
-(17): Trig = Friday, 1 March, 2024
No reminders.
BANNER %
REM 29 MSG One
-(2): Trig = Friday, 29 March, 2024
REM 29 Feb MSG two
-(3): Trig = Tuesday, 29 February, 2028
REM 29 2024 MSG three
-(4): Trig = Friday, 29 March, 2024
REM 29 Feb 2024 MSG four
-(5): Expired
REM Thursday 29 MSG One
-(6): Trig = Thursday, 4 April, 2024
REM Thursday 29 Feb MSG two
-(7): Trig = Thursday, 2 March, 2028
REM Thursday 29 2024 MSG three
-(8): Trig = Thursday, 4 April, 2024
REM Thursday 29 Feb 2024 MSG four
-(9): Expired
REM Wednesday 29 MSG One
-(10): Trig = Wednesday, 6 March, 2024
REM Wednesday 29 Feb MSG two
-(11): Trig = Wednesday, 6 March, 2024
REM Wednesday 29 2024 MSG three
-(12): Trig = Wednesday, 6 March, 2024
REM Wednesday 29 Feb 2024 MSG four
-(13): Trig = Wednesday, 6 March, 2024
REM Friday 29 MSG One
-(14): Trig = Friday, 1 March, 2024
REM Friday 29 Feb MSG two
-(15): Trig = Friday, 1 March, 2024
REM Friday 29 2024 MSG three
-(16): Trig = Friday, 1 March, 2024
REM Friday 29 Feb 2024 MSG four
-(17): Trig = Friday, 1 March, 2024
One
two
three
four
BANNER %
REM 29 MSG One
-(2): Trig = Saturday, 29 March, 2025
REM 29 Feb MSG two
-(3): Trig = Tuesday, 29 February, 2028
REM 29 2025 MSG three
-(4): Trig = Saturday, 29 March, 2025
REM 29 Feb 2025 MSG four
-stdin-(5): Bad date specification
REM Thursday 29 MSG One
-(6): Trig = Thursday, 3 April, 2025
REM Thursday 29 Feb MSG two
-(7): Trig = Thursday, 2 March, 2028
REM Thursday 29 2025 MSG three
-(8): Trig = Thursday, 3 April, 2025
REM Thursday 29 Feb 2025 MSG four
-stdin-(9): Bad date specification
REM Wednesday 29 MSG One
-(10): Trig = Wednesday, 2 April, 2025
REM Wednesday 29 Feb MSG two
-(11): Trig = Wednesday, 1 March, 2028
REM Wednesday 29 2025 MSG three
-(12): Trig = Wednesday, 2 April, 2025
REM Wednesday 29 Feb 2025 MSG four
-stdin-(13): Bad date specification
REM Friday 29 MSG One
-(14): Trig = Friday, 4 April, 2025
REM Friday 29 Feb MSG two
-(15): Trig = Friday, 3 March, 2028
REM Friday 29 2025 MSG three
-(16): Trig = Friday, 4 April, 2025
REM Friday 29 Feb 2025 MSG four
-stdin-(17): Bad date specification
No reminders.
BANNER %
REM 29 MSG One