aboutsummaryrefslogtreecommitdiffstats
path: root/todolist/parser_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'todolist/parser_test.go')
-rw-r--r--todolist/parser_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/todolist/parser_test.go b/todolist/parser_test.go
index 44ce3f7..37a4910 100644
--- a/todolist/parser_test.go
+++ b/todolist/parser_test.go
@@ -59,6 +59,10 @@ func TestDueToday(t *testing.T) {
if todo.Due != now.BeginningOfDay().Format("2006-01-02") {
fmt.Println("Date is different", todo.Due, time.Now())
}
+ todo = parser.ParseNewTodo("do this thing with @bob and @mary due tod")
+ if todo.Due != now.BeginningOfDay().Format("2006-01-02") {
+ fmt.Println("Date is different", todo.Due, time.Now())
+ }
}
func TestDueTomorrow(t *testing.T) {
@@ -67,6 +71,10 @@ func TestDueTomorrow(t *testing.T) {
if todo.Due != now.BeginningOfDay().AddDate(0, 0, 1).Format("2006-01-02") {
fmt.Println("Date is different", todo.Due, time.Now())
}
+ todo = parser.ParseNewTodo("do this thing with @bob and @mary due tom")
+ if todo.Due != now.BeginningOfDay().AddDate(0, 0, 1).Format("2006-01-02") {
+ fmt.Println("Date is different", todo.Due, time.Now())
+ }
}
func TestDueSpecific(t *testing.T) {