From 63893587cb41a1980318b60bf05fafbf433a24ab Mon Sep 17 00:00:00 2001 From: Grant Ammons Date: Sun, 24 Apr 2016 10:22:33 -0400 Subject: Organize things a bit better --- todo_test.go | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 todo_test.go (limited to 'todo_test.go') diff --git a/todo_test.go b/todo_test.go deleted file mode 100644 index aab2a74..0000000 --- a/todo_test.go +++ /dev/null @@ -1,23 +0,0 @@ -package todolist - -import "testing" - -func TestNewTodo(t *testing.T) { - todo := NewTodo() - - if todo.Completed || todo.Archived { - t.Error("Completed should be false for new todos") - } -} - -func TestValidity(t *testing.T) { - todo := &Todo{Subject: "test"} - if !todo.Valid() { - t.Error("Expected valid todo to be valid") - } - - invalidTodo := &Todo{Subject: ""} - if invalidTodo.Valid() { - t.Error("Invalid todo is being reported as valid") - } -} -- cgit v1.3