mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
tests: Add test for TW-2189
This commit is contained in:
parent
ddf2f122a2
commit
2619435148
1 changed files with 17 additions and 0 deletions
17
test/tw-2189.t
Executable file
17
test/tw-2189.t
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
. bash_tap_tw.sh
|
||||
|
||||
task add "foo \' bar"
|
||||
task list
|
||||
|
||||
# Assert the task was correctly added
|
||||
[[ ! -z `task list | grep "foo ' bar"` ]]
|
||||
[[ `task _get 1.description` == "foo ' bar" ]]
|
||||
|
||||
# Bonus: Assert escaped double quotes are also handled correctly
|
||||
task add 'foo \" bar'
|
||||
task list
|
||||
|
||||
# Assert the task was correctly added
|
||||
[[ ! -z `task list | grep 'foo " bar'` ]]
|
||||
[[ `task _get 2.description` == 'foo " bar' ]]
|
Loading…
Add table
Add a link
Reference in a new issue