eat my own dogfood, subtasks
This commit is contained in:
@@ -2,6 +2,7 @@ package pttodo
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
@@ -26,7 +27,7 @@ func TestJSONTodo(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
} else if err := json.Unmarshal(b, &todo2); err != nil {
|
||||
t.Fatal(err)
|
||||
} else if todo != todo2 {
|
||||
} else if fmt.Sprint(todo) != fmt.Sprint(todo2) {
|
||||
t.Fatal(todo2)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user