From b590208498a02dbc80d3c32f0198e31468b0b9e3 Mon Sep 17 00:00:00 2001 From: David Mackey Date: Mon, 27 Apr 2015 13:33:30 -0700 Subject: [PATCH] trivial: typo cleanup Signed-off-by: David Mackey --- archive/archive_windows_test.go | 2 +- graphdb/graphdb_test.go | 4 ++-- term/winconsole/console_windows_test.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/archive/archive_windows_test.go b/archive/archive_windows_test.go index b33e0fb..72bc71e 100644 --- a/archive/archive_windows_test.go +++ b/archive/archive_windows_test.go @@ -20,7 +20,7 @@ func TestCanonicalTarNameForPath(t *testing.T) { if out, err := CanonicalTarNameForPath(v.in); err != nil && !v.shouldFail { t.Fatalf("cannot get canonical name for path: %s: %v", v.in, err) } 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 { t.Fatalf("wrong canonical tar name. expected:%s got:%s", v.expected, out) } diff --git a/graphdb/graphdb_test.go b/graphdb/graphdb_test.go index 12dd524..1cd223b 100644 --- a/graphdb/graphdb_test.go +++ b/graphdb/graphdb_test.go @@ -52,7 +52,7 @@ func TestGetRootEntity(t *testing.T) { t.Fatal("Entity should not be nil") } 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) } 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") } } diff --git a/term/winconsole/console_windows_test.go b/term/winconsole/console_windows_test.go index ee9d968..edb5d6f 100644 --- a/term/winconsole/console_windows_test.go +++ b/term/winconsole/console_windows_test.go @@ -18,7 +18,7 @@ func helpsTestParseInt16OrDefault(t *testing.T, expectedValue int16, shouldFail t.Errorf(format, args) } 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) } }