From d86bc4ea3f85bab91be80792c423b2a96aa6d626 Mon Sep 17 00:00:00 2001 From: Grant Ammons Date: Wed, 10 May 2017 20:21:41 -0400 Subject: Formatting for test --- todolist/parser_test.go | 14 +++++++------- 1 file 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") -- cgit v1.3