()
| 23 | |
| 24 | |
| 25 | def test_byte_string(): |
| 26 | codec = ScalarCodec(StringType()) |
| 27 | field = UnischemaField(name='field_string', numpy_dtype=np.string_, shape=(), codec=codec, nullable=False) |
| 28 | |
| 29 | assert codec.decode(field, codec.encode(field, 'abc')) == b'abc' |
| 30 | assert codec.decode(field, codec.encode(field, '')) == b'' |
| 31 | |
| 32 | |
| 33 | def test_unicode(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…