MCPcopy Create free account
hub / github.com/alecthomas/devtodo2 / TestIndexFromString

Function TestIndexFromString

todo_test.go:36–41  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

34}
35
36func TestIndexFromString(t *testing.T) {
37 index := indexFromString("1.2.3")
38 if len(index) != 3 || index[0] != 0 || index[1] != 1 || index[2] != 2 {
39 t.Fail()
40 }
41}
42
43func TestDelete(t *testing.T) {
44 tasks := NewTaskList()

Callers

nothing calls this directly

Calls 1

indexFromStringFunction · 0.85

Tested by

no test coverage detected