Renaming test files according to their language (#3407)

This commit is contained in:
mattsmida
2024-05-01 14:28:07 -04:00
committed by GitHub
parent 43ca74549d
commit ef9613e2d6
178 changed files with 171 additions and 169 deletions

18
test/tw-1804.test.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/env bash
. bash_tap_tw.sh
# Import a task with annotation without an description
# Should fail
OUTPUT=`echo '{"description":"Buy the milk","annotations":[{"entry": 1234567890}]}' | task import - 2>&1` || :
[[ $OUTPUT =~ "missing a description" ]]
# Check that the task was NOT added
[[ `task count` == 0 ]]
# Import a task with annotation without an entry
echo '{"description":"Buy the milk","annotations":[{"description":"and Cheese"}]}' | task import -
# Check that the task was added
[[ `task count` == 1 ]]
[[ `task milk count` == 1 ]]
[[ `task _get 1.annotations.count` == 1 ]]