spelling: doesnot

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
pull/7258/head
Josh Soref 6 years ago
parent 74e98b69f9
commit 34cb82b19e

@ -20,7 +20,7 @@ import (
"testing" "testing"
) )
func TestErrorNoTableDoesntPanic(t *testing.T) { func TestErrorNoTableDoesNotPanic(t *testing.T) {
x := "empty" x := "empty"
y := ErrNoTable{x} y := ErrNoTable{x}
@ -28,7 +28,7 @@ func TestErrorNoTableDoesntPanic(t *testing.T) {
t.Logf("error is: %s", y) t.Logf("error is: %s", y)
} }
func TestErrorNoValueDoesntPanic(t *testing.T) { func TestErrorNoValueDoesNotPanic(t *testing.T) {
x := "empty" x := "empty"
y := ErrNoValue{x} y := ErrNoValue{x}

@ -275,10 +275,10 @@ chapter:
} else if v != "Loomings" { } else if v != "Loomings" {
t.Errorf("No error but got wrong value for title: %s\n%v", err, d) t.Errorf("No error but got wrong value for title: %s\n%v", err, d)
} }
if _, err := d.PathValue("chapter.one.doesntexist"); err == nil { if _, err := d.PathValue("chapter.one.doesnotexist"); err == nil {
t.Errorf("Non-existent key should return error: %s\n%v", err, d) t.Errorf("Non-existent key should return error: %s\n%v", err, d)
} }
if _, err := d.PathValue("chapter.doesntexist.one"); err == nil { if _, err := d.PathValue("chapter.doesnotexist.one"); err == nil {
t.Errorf("Non-existent key in middle of path should return error: %s\n%v", err, d) t.Errorf("Non-existent key in middle of path should return error: %s\n%v", err, d)
} }
if _, err := d.PathValue(""); err == nil { if _, err := d.PathValue(""); err == nil {

Loading…
Cancel
Save