(t *testing.T)
| 91 | } |
| 92 | |
| 93 | func TestNonAsciiEncoding(t *testing.T) { |
| 94 | encoder := NewEncoder('.', '_') |
| 95 | |
| 96 | data, err := encoder.Encode("こんにちは") // Non-ASCII String |
| 97 | require.NoError(t, err) |
| 98 | require.Equal(t, UTF_8, data.GetEncoding(), "Encoding should be UTF-8 for non-ASCII strings") |
| 99 | } |
| 100 | |
| 101 | func TestEncodeWithEncodingNonAscii(t *testing.T) { |
| 102 | encoder := NewEncoder('.', '_') |
nothing calls this directly
no test coverage detected