From 3bf714e71533de233ab248885034c196ef9aa802 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sat, 19 Jun 2021 12:00:41 -0400 Subject: [PATCH] tests: Add test for TW #1938 --- test/tw-1938.t | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 test/tw-1938.t diff --git a/test/tw-1938.t b/test/tw-1938.t new file mode 100755 index 000000000..c153f2018 --- /dev/null +++ b/test/tw-1938.t @@ -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 ]]