summaryrefslogtreecommitdiff
path: root/spew/format_test.go
diff options
context:
space:
mode:
authorDavid Hill <[email protected]>2017-07-11 14:34:51 -0400
committerDavid Hill <[email protected]>2017-07-11 14:34:51 -0400
commitadab96458c51a58dc1783b3335dcce5461522e75 (patch)
tree93694e51c2fef34ee87ea8b8807d5f1869ce1735 /spew/format_test.go
parent9fadf46324c4cfc36cc82310ca92ded38af91249 (diff)
travis: test against 1.8.x
Diffstat (limited to 'spew/format_test.go')
-rw-r--r--spew/format_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/spew/format_test.go b/spew/format_test.go
index f9b93ab..0719eb9 100644
--- a/spew/format_test.go
+++ b/spew/format_test.go
@@ -1536,14 +1536,14 @@ func TestPrintSortedKeys(t *testing.T) {
t.Errorf("Sorted keys mismatch 3:\n %v %v", s, expected)
}
- s = cfg.Sprint(map[testStruct]int{testStruct{1}: 1, testStruct{3}: 3, testStruct{2}: 2})
+ s = cfg.Sprint(map[testStruct]int{{1}: 1, {3}: 3, {2}: 2})
expected = "map[ts.1:1 ts.2:2 ts.3:3]"
if s != expected {
t.Errorf("Sorted keys mismatch 4:\n %v %v", s, expected)
}
if !spew.UnsafeDisabled {
- s = cfg.Sprint(map[testStructP]int{testStructP{1}: 1, testStructP{3}: 3, testStructP{2}: 2})
+ s = cfg.Sprint(map[testStructP]int{{1}: 1, {3}: 3, {2}: 2})
expected = "map[ts.1:1 ts.2:2 ts.3:3]"
if s != expected {
t.Errorf("Sorted keys mismatch 5:\n %v %v", s, expected)