mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00

Per the TODO, use `__init__` to override the stream. There don't seem to be any other substantial changes to the `run` method needed for TAP and I'm assuming the additional code in the upstream `run` has been added since this class was written. My primary motivation was to set `result.buffer = self.buffer` in the `run` method, which fixes the runner enough to be able to use `breakpoint()`. In addition, I updated the shebang in `tw-2189.t` for portability.
17 lines
424 B
Bash
Executable file
17 lines
424 B
Bash
Executable file
#!/usr/bin/env 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' ]]
|