diff options
| -rw-r--r-- | .travis.yml | 3 | ||||
| -rw-r--r-- | todolist/app_test.go | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index f982308..70c716c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,10 @@ language: go sudo: false go: - - 1.6.2 + - 1.9.2 os: - linux - osx + script: - go test -v ./... diff --git a/todolist/app_test.go b/todolist/app_test.go index f95987d..09bdbd6 100644 --- a/todolist/app_test.go +++ b/todolist/app_test.go @@ -46,12 +46,13 @@ func TestAddDoneTodo(t *testing.T) { func TestAddTodoWithEuropeanDates(t *testing.T) { assert := assert.New(t) app := &App{TodoList: &TodoList{}, TodoStore: &MemoryStore{}} + year := strconv.Itoa(time.Now().Year()) app.AddTodo("a do some stuff due 23 may") todo := app.TodoList.FindById(1) assert.Equal("do some stuff", todo.Subject) - assert.Equal("2017-05-23", todo.Due) + assert.Equal(fmt.Sprintf("%s-05-23", year), todo.Due) assert.Equal(false, todo.Completed) assert.Equal(false, todo.Archived) assert.Equal(false, todo.IsPriority) |
