diff options
author | Lukas Fleischer <lfleischer@calcurse.org> | 2016-01-28 18:34:42 +0100 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2016-01-28 18:37:31 +0100 |
commit | 03c4465baf3b348de3afc5fd873d417ae4887def (patch) | |
tree | d9d08da8dce38e51e737735a2de3714a5f843a57 /test | |
parent | 41389abd5519854543d22105c979e82ec3f57a05 (diff) | |
download | calcurse-03c4465baf3b348de3afc5fd873d417ae4887def.zip |
Fix behavior of --todo with an optional argument
The previous behavior of --todo was to always only list uncompleted
items, unless zero was specified as additional argument. Restore and
document this behavior.
Also, fix two tests that failed because the --todo output is now sorted.
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'test')
-rwxr-xr-x | test/filter-001.sh | 2 | ||||
-rwxr-xr-x | test/todo-002.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/filter-001.sh b/test/filter-001.sh index 2dcbb25..3e0aca5 100755 --- a/test/filter-001.sh +++ b/test/filter-001.sh @@ -8,8 +8,8 @@ if [ "$1" = 'actual' ]; then elif [ "$1" = 'expected' ]; then cat <<EOD to do: -9. Gloriously slams 9. Beefburger's +9. Gloriously slams 9. Seasons 02/23/13: diff --git a/test/todo-002.sh b/test/todo-002.sh index 9e06dc3..8e9e214 100755 --- a/test/todo-002.sh +++ b/test/todo-002.sh @@ -6,7 +6,7 @@ if [ "$1" = 'actual' ]; then "$CALCURSE" --read-only -D "$DATA_DIR"/ -t3 elif [ "$1" = 'expected' ]; then echo 'to do:' - sed -n 's/^\[3\] \(.*\)/3. \1/p' "$DATA_DIR"/todo + sed -n 's/^\[3\] \(.*\)/3. \1/p' "$DATA_DIR"/todo | sort else ./run-test "$0" fi |