diff options
| author | Grant Ammons <gammons@gmail.com> | 2017-05-10 20:21:41 -0400 |
|---|---|---|
| committer | Grant Ammons <gammons@gmail.com> | 2017-05-10 20:21:41 -0400 |
| commit | d86bc4ea3f85bab91be80792c423b2a96aa6d626 (patch) | |
| tree | 349f997399f71583bb291257869dcd0eb17fa359 /todolist | |
| parent | 14502a4dee75e0da0915061f15928efb44d2b1ab (diff) | |
Formatting for test
Diffstat (limited to 'todolist')
| -rw-r--r-- | todolist/parser_test.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/todolist/parser_test.go b/todolist/parser_test.go index 6920c7c..f5cc185 100644 --- a/todolist/parser_test.go +++ b/todolist/parser_test.go @@ -174,7 +174,7 @@ func TestParseEditTodoJustDate(t *testing.T) { assert := assert.New(t) parser := &Parser{} todo := NewTodo() - tomorrow := time.Now().AddDate(0,0,1).Format("2006-01-02") + tomorrow := time.Now().AddDate(0, 0, 1).Format("2006-01-02") parser.ParseEditTodo(todo, "e 24 due tom") @@ -186,7 +186,7 @@ func TestParseEditTodoJustDateDoesNotEditExistingSubject(t *testing.T) { parser := &Parser{} todo := NewTodo() todo.Subject = "pick up the trash" - tomorrow := time.Now().AddDate(0,0,1).Format("2006-01-02") + tomorrow := time.Now().AddDate(0, 0, 1).Format("2006-01-02") parser.ParseEditTodo(todo, "e 24 due tom") @@ -209,8 +209,8 @@ func TestParseEditTodoSubjectUpdatesProjectsAndContexts(t *testing.T) { assert := assert.New(t) parser := &Parser{} todo := &Todo{ - Subject: "pick up the +trash with @dad", - Due: "2016-11-25", + Subject: "pick up the +trash with @dad", + Due: "2016-11-25", Projects: []string{"trash"}, Contexts: []string{"dad"}, } @@ -227,12 +227,12 @@ func TestParseEditTodoWithSubjectAndDue(t *testing.T) { assert := assert.New(t) parser := &Parser{} todo := &Todo{ - Subject: "pick up the +trash with @dad", - Due: "2016-11-25", + Subject: "pick up the +trash with @dad", + Due: "2016-11-25", Projects: []string{"trash"}, Contexts: []string{"dad"}, } - tomorrow := time.Now().AddDate(0,0,1).Format("2006-01-02") + tomorrow := time.Now().AddDate(0, 0, 1).Format("2006-01-02") parser.ParseEditTodo(todo, "e 24 get the +garbage with @mom due tom") |
