(t *testing.T)
| 150 | } |
| 151 | |
| 152 | func TestStringFromUTF16(t *testing.T) { |
| 153 | s := StringFromUTF16([]uint16{}) |
| 154 | if s.Length() != 0 || !s.SameAs(asciiString("")) { |
| 155 | t.Fatal(s) |
| 156 | } |
| 157 | |
| 158 | s = StringFromUTF16([]uint16{0xD800}) |
| 159 | if s.Length() != 1 || s.CharAt(0) != 0xD800 { |
| 160 | t.Fatal(s) |
| 161 | } |
| 162 | |
| 163 | s = StringFromUTF16([]uint16{'A', 'B'}) |
| 164 | if !s.SameAs(asciiString("AB")) { |
| 165 | t.Fatal(s) |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | func TestStringBuilder(t *testing.T) { |
| 170 | t.Run("writeUTF8String-switch", func(t *testing.T) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…