mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
tests: Add a regression test for #2530
This commit is contained in:
parent
85a6c90c2b
commit
79c860053b
1 changed files with 19 additions and 0 deletions
19
test/tw-2530.t
Executable file
19
test/tw-2530.t
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env bash
|
||||
. bash_tap_tw.sh
|
||||
|
||||
# Setup the tasks
|
||||
task add wait:1w this should INDEED show up
|
||||
task add this should NOT show up
|
||||
sleep 1
|
||||
|
||||
# Check that the wait.before filter displays the correct number of tasks
|
||||
task wait.before:1w all
|
||||
|
||||
# Assertion: The task without wait attribute does not show up
|
||||
[[ -z `task wait.before:1w all | grep NOT` ]]
|
||||
|
||||
# Assertion: The task with the wait attribute DOES show up
|
||||
[[ ! -z `task wait.before:1w all | grep INDEED` ]]
|
||||
|
||||
# Assertion: There is exactly one task matching the filter
|
||||
[[ `task wait.before:1w count` == 1 ]]
|
Loading…
Add table
Add a link
Reference in a new issue