(t *testing.T)
| 21 | ) |
| 22 | |
| 23 | func TestFind(t *testing.T) { |
| 24 | tasks := NewTaskList() |
| 25 | tasks.Create("do A", MEDIUM) |
| 26 | b := tasks.Create("do B", MEDIUM) |
| 27 | b.Create("do C", MEDIUM) |
| 28 | b.Create("do D", MEDIUM) |
| 29 | |
| 30 | task := tasks.Find("2.2") |
| 31 | if task == nil || task.Text() != "do D" { |
| 32 | t.Fail() |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | func TestIndexFromString(t *testing.T) { |
| 37 | index := indexFromString("1.2.3") |
nothing calls this directly
no test coverage detected