mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
tests: Add test for TW #1938
This commit is contained in:
parent
c8560a8c96
commit
3bf714e715
1 changed files with 10 additions and 0 deletions
10
test/tw-1938.t
Executable file
10
test/tw-1938.t
Executable file
|
@ -0,0 +1,10 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
# Ref: https://github.com/GothenburgBitFactory/taskwarrior/issues/1938
|
||||||
|
|
||||||
|
. bash_tap_tw.sh
|
||||||
|
|
||||||
|
# Add a task with two annotations with the same entry value
|
||||||
|
echo '{"description": "my description", "annotations": [{"entry": "20170813T120000Z", "description": "first"}, {"entry": "20170813T120000Z", "description": "second"}]}' | task import -
|
||||||
|
|
||||||
|
# Check that the task has 2 annotations
|
||||||
|
[[ `task _get 1.annotations.count` == 2 ]]
|
Loading…
Add table
Add a link
Reference in a new issue