]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: fix fmt test
authorKeith Randall <khr@google.com>
Mon, 14 Oct 2019 23:34:28 +0000 (16:34 -0700)
committerKeith Randall <khr@golang.org>
Tue, 15 Oct 2019 01:10:46 +0000 (01:10 +0000)
CL 196781 added map[int64]uint32 to the set of things printed with %v.

Fixes #34907

Change-Id: If4a13e86cfb4b691988f5fb70449ae23760f5789
Reviewed-on: https://go-review.googlesource.com/c/go/+/201079
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/fmtmap_test.go

index 7c44ec11ed2a9f44f091e945b09602457c79b7fa..ebbaf01b176857b56dd577573deb9ce76a9335ee 100644 (file)
@@ -171,36 +171,37 @@ var knownFormats = map[string]string{
        "map[*cmd/compile/internal/gc.Node]*cmd/compile/internal/ssa.Value %v": "",
        "map[*cmd/compile/internal/gc.Node][]*cmd/compile/internal/gc.Node %v": "",
        "map[cmd/compile/internal/ssa.ID]uint32 %v":                            "",
-       "math/big.Accuracy %s": "",
-       "reflect.Type %s":      "",
-       "rune %#U":             "",
-       "rune %c":              "",
-       "rune %q":              "",
-       "string %-*s":          "",
-       "string %-16s":         "",
-       "string %-6s":          "",
-       "string %q":            "",
-       "string %s":            "",
-       "string %v":            "",
-       "time.Duration %d":     "",
-       "time.Duration %v":     "",
-       "uint %04x":            "",
-       "uint %5d":             "",
-       "uint %d":              "",
-       "uint %x":              "",
-       "uint16 %d":            "",
-       "uint16 %x":            "",
-       "uint32 %#U":           "",
-       "uint32 %#x":           "",
-       "uint32 %d":            "",
-       "uint32 %v":            "",
-       "uint32 %x":            "",
-       "uint64 %08x":          "",
-       "uint64 %b":            "",
-       "uint64 %d":            "",
-       "uint64 %x":            "",
-       "uint8 %d":             "",
-       "uint8 %v":             "",
-       "uint8 %x":             "",
-       "uintptr %d":           "",
+       "map[int64]uint32 %v":                                                  "",
+       "math/big.Accuracy %s":                                                 "",
+       "reflect.Type %s":                                                      "",
+       "rune %#U":                                                             "",
+       "rune %c":                                                              "",
+       "rune %q":                                                              "",
+       "string %-*s":                                                          "",
+       "string %-16s":                                                         "",
+       "string %-6s":                                                          "",
+       "string %q":                                                            "",
+       "string %s":                                                            "",
+       "string %v":                                                            "",
+       "time.Duration %d":                                                     "",
+       "time.Duration %v":                                                     "",
+       "uint %04x":                                                            "",
+       "uint %5d":                                                             "",
+       "uint %d":                                                              "",
+       "uint %x":                                                              "",
+       "uint16 %d":                                                            "",
+       "uint16 %x":                                                            "",
+       "uint32 %#U":                                                           "",
+       "uint32 %#x":                                                           "",
+       "uint32 %d":                                                            "",
+       "uint32 %v":                                                            "",
+       "uint32 %x":                                                            "",
+       "uint64 %08x":                                                          "",
+       "uint64 %b":                                                            "",
+       "uint64 %d":                                                            "",
+       "uint64 %x":                                                            "",
+       "uint8 %d":                                                             "",
+       "uint8 %v":                                                             "",
+       "uint8 %x":                                                             "",
+       "uintptr %d":                                                           "",
 }