MCPcopy Create free account
hub / github.com/golang/mobile / TestString

Function TestString

bind/seq/string_test.go:18–28  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

16}
17
18func 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}

Callers

nothing calls this directly

Calls 1

UTF16EncodeFunction · 0.85

Tested by

no test coverage detected