(t *testing.T)
| 8 | ) |
| 9 | |
| 10 | func TestNewToDoNil(t *testing.T) { |
| 11 | collection := lege.NewCollection(lege.Location{}, lege.Location{}, lege.Boundary{}, "Hello World") |
| 12 | comment := comments.Comment{ |
| 13 | Collection: *collection, |
| 14 | } |
| 15 | todo := NewToDo(comment) |
| 16 | |
| 17 | if todo != nil { |
| 18 | t.Fatalf("did not expect a TODO, got: %v", todo) |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | func TestNewToDo(t *testing.T) { |
| 23 | collection := lege.NewCollection(lege.Location{}, lege.Location{}, lege.Boundary{}, "TODO Hello World") |