aboutsummaryrefslogtreecommitdiff
path: root/cmp/internal
diff options
context:
space:
mode:
authorJoe Tsai <joetsai@digital-static.net>2017-07-25 12:35:49 -0700
committerGitHub <noreply@github.com>2017-07-25 12:35:49 -0700
commitb8dbfba87748393ea3632df42dcc82302adf5cdf (patch)
tree56b49353f2dcc1be5b1f9d6de3397c55f2d02a3d /cmp/internal
parenta77394b709bf3eecbbd90fc51bd3d654af78f06b (diff)
downloadgo-cmp-b8dbfba87748393ea3632df42dcc82302adf5cdf.tar.gz
Trivial style changes to cmp/internal/value tests (#25)
Diffstat (limited to 'cmp/internal')
-rw-r--r--cmp/internal/value/format_test.go2
-rw-r--r--cmp/internal/value/sort_test.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/cmp/internal/value/format_test.go b/cmp/internal/value/format_test.go
index c44884f..6498854 100644
--- a/cmp/internal/value/format_test.go
+++ b/cmp/internal/value/format_test.go
@@ -85,7 +85,7 @@ func TestFormat(t *testing.T) {
for i, tt := range tests {
got := Format(reflect.ValueOf(tt.in), true)
if got != tt.want {
- t.Errorf("test %d, pretty print:\ngot %q\nwant %q", i, got, tt.want)
+ t.Errorf("test %d, Format():\ngot %q\nwant %q", i, got, tt.want)
}
}
}
diff --git a/cmp/internal/value/sort_test.go b/cmp/internal/value/sort_test.go
index d3f254b..c5a6bbb 100644
--- a/cmp/internal/value/sort_test.go
+++ b/cmp/internal/value/sort_test.go
@@ -145,8 +145,8 @@ func TestSortKeys(t *testing.T) {
for _, k := range value.SortKeys(keys) {
got = append(got, k.Interface())
}
- if d := cmp.Diff(tt.want, got, opts...); d != "" {
- t.Errorf("test %d, output mismatch (-want +got):\n%s", i, d)
+ if d := cmp.Diff(got, tt.want, opts...); d != "" {
+ t.Errorf("test %d, Sort() mismatch (-got +want):\n%s", i, d)
}
}
}