Home | History | Annotate | Download | only in utf16

Lines Matching refs:tt

38 	for _, tt := range encodeTests {
39 out := Encode(tt.in)
40 if !reflect.DeepEqual(out, tt.out) {
41 t.Errorf("Encode(%x) = %x; want %x", tt.in, out, tt.out)
47 for i, tt := range encodeTests {
49 for _, r := range tt.in {
52 if j >= len(tt.out) {
53 t.Errorf("#%d: ran out of tt.out", i)
61 if j+1 >= len(tt.out) {
62 t.Errorf("#%d: ran out of tt.out", i)
65 if r1 != rune(tt.out[j]) || r2 != rune(tt.out[j+1]) {
66 t.Errorf("EncodeRune(%#x) = %#x, %#x; want %#x, %#x", r, r1, r2, tt.out[j], tt.out[j+1])
75 if j != len(tt.out) {
95 for _, tt := range decodeTests {
96 out := Decode(tt.in)
97 if !reflect.DeepEqual(out, tt.out) {
98 t.Errorf("Decode(%x) = %x; want %x", tt.in, out, tt.out)
115 for i, tt := range decodeRuneTests {
116 got := DecodeRune(tt.r1, tt.r2)
117 if got != tt.want {
118 t.Errorf("%d: DecodeRune(%q, %q) = %v; want %v", i, tt.r1, tt.r2, got, tt.want)
143 for i, tt := range surrogateTests {
144 got := IsSurrogate(tt.r)
145 if got != tt.want {
146 t.Errorf("%d: IsSurrogate(%q) = %v; want %v", i, tt.r, got, tt.want)