Skip to content

Commit

Permalink
fixup! test: add tests for codecs
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Dec 31, 2023
1 parent 4b042e4 commit 23f8795
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/core/codec_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ void main() {
final convertedBytes = cborCodec
.valueToBytes(DataSchemaValue.fromObject(testValue), null, {});

expect(
convertedBytes,
[161, 99, 102, 111, 111, 130, 99, 98, 97, 114, 99, 98, 97, 122],
);

final convertedValue = cborCodec.bytesToValue(convertedBytes, null, {});
expect(convertedValue?.value, testValue);

Expand Down

0 comments on commit 23f8795

Please sign in to comment.