aboutsummaryrefslogtreecommitdiffstats
path: root/todo_test.go
diff options
context:
space:
mode:
authorGrant Ammons <gammons@gmail.com>2016-04-24 10:22:33 -0400
committerGrant Ammons <gammons@gmail.com>2016-04-24 10:22:33 -0400
commit63893587cb41a1980318b60bf05fafbf433a24ab (patch)
tree39c93f3a1735ef33d028ab9ef44fc0ac15049208 /todo_test.go
parent6bb90375f4efb2f390a61ede0df70eea1ef1f50f (diff)
Organize things a bit better
Diffstat (limited to 'todo_test.go')
-rw-r--r--todo_test.go23
1 files changed, 0 insertions, 23 deletions
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")
- }
-}