tests: Add test for TW #2514

This commit is contained in:
Tomas Babej
2021-06-26 13:56:33 -04:00
parent cc0ba46873
commit d76b4e0d86

11
test/tw-2514.t Executable file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
. bash_tap_tw.sh
# Setup the tasks
task add Something I did yesterday
task 1 mod start:yesterday+18h
task 1 done end:yesterday+20h
# Check that 2 hour interval is reported by task info
task info | grep -F "Start deleted"
[[ ! -z `task info | grep -F "Start deleted (duration: 2:00:00)."` ]]