File: tw-1938.test.sh

package info (click to toggle)
task 3.4.2%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,332 kB
  • sloc: cpp: 42,567; python: 12,689; sh: 775; perl: 189; makefile: 35
file content (10 lines) | stat: -rwxr-xr-x 439 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
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 ]]