trivial: typo cleanup

Signed-off-by: David Mackey <tdmackey@booleanhaiku.com>
This commit is contained in:
David Mackey 2015-04-27 13:33:30 -07:00
parent f023195a1e
commit b590208498
3 changed files with 4 additions and 4 deletions

View file

@ -20,7 +20,7 @@ func TestCanonicalTarNameForPath(t *testing.T) {
if out, err := CanonicalTarNameForPath(v.in); err != nil && !v.shouldFail { if out, err := CanonicalTarNameForPath(v.in); err != nil && !v.shouldFail {
t.Fatalf("cannot get canonical name for path: %s: %v", v.in, err) t.Fatalf("cannot get canonical name for path: %s: %v", v.in, err)
} else if v.shouldFail && err == nil { } else if v.shouldFail && err == nil {
t.Fatalf("canonical path call should have pailed with error. in=%s out=%s", v.in, out) t.Fatalf("canonical path call should have failed with error. in=%s out=%s", v.in, out)
} else if !v.shouldFail && out != v.expected { } else if !v.shouldFail && out != v.expected {
t.Fatalf("wrong canonical tar name. expected:%s got:%s", v.expected, out) t.Fatalf("wrong canonical tar name. expected:%s got:%s", v.expected, out)
} }

View file

@ -52,7 +52,7 @@ func TestGetRootEntity(t *testing.T) {
t.Fatal("Entity should not be nil") t.Fatal("Entity should not be nil")
} }
if e.ID() != "0" { if e.ID() != "0" {
t.Fatalf("Enity id should be 0, got %s", e.ID()) t.Fatalf("Entity id should be 0, got %s", e.ID())
} }
} }
@ -74,7 +74,7 @@ func TestSetDuplicateEntity(t *testing.T) {
t.Fatal(err) t.Fatal(err)
} }
if _, err := db.Set("/foo", "43"); err == nil { if _, err := db.Set("/foo", "43"); err == nil {
t.Fatalf("Creating an entry with a duplciate path did not cause an error") t.Fatalf("Creating an entry with a duplicate path did not cause an error")
} }
} }

View file

@ -18,7 +18,7 @@ func helpsTestParseInt16OrDefault(t *testing.T, expectedValue int16, shouldFail
t.Errorf(format, args) t.Errorf(format, args)
} }
if expectedValue != value { if expectedValue != value {
t.Errorf("The value returned does not macth expected\n\tExpected:%v\n\t:Actual%v", expectedValue, value) t.Errorf("The value returned does not match expected\n\tExpected:%v\n\t:Actual%v", expectedValue, value)
t.Errorf(format, args) t.Errorf(format, args)
} }
} }