// Special case for rune constants.
if typ == types.RuneType || typ == types.UntypedRune {
if x, ok := constant.Uint64Val(val); ok && x <= utf8.MaxRune {
- fmt.Fprintf(s, "%q", x)
+ fmt.Fprintf(s, "%q", rune(x))
return
}
}
fmt.Printf("%b %b %b %b", 3e9, x, fslice, c)
fmt.Printf("%o %o", 3, i)
fmt.Printf("%p", p)
- fmt.Printf("%q %q %q %q", 3, i, 'x', r)
+ fmt.Printf("%q %q %q", rune(3), 'x', r)
fmt.Printf("%s %s %s", "hi", s, []byte{65})
fmt.Printf("%t %t", true, b)
fmt.Printf("%T %T", 3, i)
t.Errorf("public key is not equal to itself: %v", public)
}
if !public.Equal(crypto.Signer(private).Public().(*rsa.PublicKey)) {
- t.Errorf("private.Public() is not Equal to public: %q", public)
+ t.Errorf("private.Public() is not Equal to public: %v", public)
}
if !private.Equal(private) {
t.Errorf("private key is not equal to itself: %v", private)
}
if *expectVersion != 0 && cs.Version != uint16(*expectVersion) {
- log.Fatalf("expected ssl version %q, got %q", uint16(*expectVersion), cs.Version)
+ log.Fatalf("expected ssl version %d, got %d", *expectVersion, cs.Version)
}
if *declineALPN && cs.NegotiatedProtocol != "" {
log.Fatal("unexpected ALPN protocol")
idx := t.columnIndex(wcol.Column)
if idx == -1 {
t.mu.Unlock()
- return nil, fmt.Errorf("fakedb: invalid where clause column %q", wcol)
+ return nil, fmt.Errorf("fakedb: invalid where clause column %v", wcol)
}
tcol := trow.cols[idx]
if bs, ok := tcol.([]byte); ok {
t.Errorf("bad scan rune: %q %q %q should be '1' '2' '➂'", a.rune, b.rune, c.rune)
}
if a.size != 1 || b.size != 1 || c.size != 3 {
- t.Errorf("bad scan size: %q %q %q should be 1 1 3", a.size, b.size, c.size)
+ t.Errorf("bad scan size: %d %d %d should be 1 1 3", a.size, b.size, c.size)
}
}
r := pr.NewDecoder(pkgbits.SectionMeta, pkgbits.PublicRootIdx, pkgbits.SyncPublic)
if r.Version() != w.Version() {
- t.Errorf("Expected reader version %q to be the writer version %q", r.Version(), w.Version())
+ t.Errorf("Expected reader version %d to be the writer version %d", r.Version(), w.Version())
}
}
}
}
if dirNamesLen := len(dirNames); dirNamesLen != 1 {
- t.Fatalf("unexpected dirNames len, got %q, want %q", dirNamesLen, 1)
+ t.Fatalf("unexpected dirNames len, got %d, want %d", dirNamesLen, 1)
}
if dirNames[0] != to {
ValueOf(&concrete).Elem().Set(fn)
x := concrete(nil, 7)
if x != 9 {
- t.Errorf("have %#q want 9", x)
+ t.Errorf("have %d want 9", x)
}
}