Add a test case to reproduce BUG#2
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
parent
86c465b0e5
commit
b526d46fae
@ -15,7 +15,8 @@ TESTS = \
|
|||||||
range-003.sh \
|
range-003.sh \
|
||||||
appointment-001.sh \
|
appointment-001.sh \
|
||||||
next-001.sh \
|
next-001.sh \
|
||||||
search-001.sh
|
search-001.sh \
|
||||||
|
bug-002.sh
|
||||||
|
|
||||||
TESTS_ENVIRONMENT = \
|
TESTS_ENVIRONMENT = \
|
||||||
CALCURSE='$(top_builddir)/src/calcurse' \
|
CALCURSE='$(top_builddir)/src/calcurse' \
|
||||||
|
16
test/bug-002.sh
Executable file
16
test/bug-002.sh
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ "$1" = 'actual' ]; then
|
||||||
|
"$CALCURSE" --read-only -D "$DATA_DIR"/ -c "$DATA_DIR/apts-bug-002" \
|
||||||
|
-d05/03/2012
|
||||||
|
elif [ "$1" = 'expected' ]; then
|
||||||
|
cat <<EOD
|
||||||
|
05/03/12:
|
||||||
|
- 10:45 -> 12:45
|
||||||
|
Quantum Mechanics
|
||||||
|
- 18:30 -> 21:30
|
||||||
|
German Class
|
||||||
|
EOD
|
||||||
|
else
|
||||||
|
./run-test "$0"
|
||||||
|
fi
|
2
test/data/apts-bug-002
Normal file
2
test/data/apts-bug-002
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
03/22/2012 @ 18:30 -> 03/22/2012 @ 21:30 {1W -> 06/21/2012} |German Class
|
||||||
|
04/19/2012 @ 10:45 -> 04/19/2012 @ 12:45 {1W -> 05/06/2012} |Quantum Mechanics
|
Loading…
x
Reference in New Issue
Block a user