diff --git a/test/core/codec_test.dart b/test/core/codec_test.dart index a0d86da9..e32dc900 100644 --- a/test/core/codec_test.dart +++ b/test/core/codec_test.dart @@ -75,11 +75,12 @@ void main() { group('CborCodec should', () { test('convert bytes to values and back', () { final cborCodec = CborCodec(); - const testValue = 'foo'; + const testValue = { + 'foo': ['bar', 'baz'], + }; final convertedBytes = cborCodec - .valueToBytes(DataSchemaValue.fromString(testValue), null, {}); - expect(convertedBytes, [99, 102, 111, 111]); + .valueToBytes(DataSchemaValue.fromObject(testValue), null, {}); final convertedValue = cborCodec.bytesToValue(convertedBytes, null, {}); expect(convertedValue?.value, testValue);