(t *testing.T)
| 16 | } |
| 17 | |
| 18 | func TestString(t *testing.T) { |
| 19 | for _, test := range strData { |
| 20 | chars := make([]uint16, 4*len(test)) |
| 21 | nchars := UTF16Encode(test, chars) |
| 22 | chars = chars[:nchars] |
| 23 | got := string(utf16.Decode(chars)) |
| 24 | if got != test { |
| 25 | t.Errorf("UTF16: got %q, want %q", got, test) |
| 26 | } |
| 27 | } |
| 28 | } |
nothing calls this directly
no test coverage detected