diff options
Diffstat (limited to 'core/serialize_deserialize_test.js')
-rw-r--r-- | core/serialize_deserialize_test.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/serialize_deserialize_test.js b/core/serialize_deserialize_test.js index 86ef0eaac..f15fc04e8 100644 --- a/core/serialize_deserialize_test.js +++ b/core/serialize_deserialize_test.js @@ -19,7 +19,7 @@ function assertArrayEquals(a1, a2) { function main() { const emptyString = ""; - const emptyStringSerialized = [255, 14, 34, 0]; + const emptyStringSerialized = [255, 15, 34, 0]; assertArrayEquals(Deno.core.serialize(emptyString), emptyStringSerialized); assert( Deno.core.deserialize(new Uint8Array(emptyStringSerialized)) === @@ -29,7 +29,7 @@ function main() { const primitiveValueArray = ["test", "a", null, undefined]; // deno-fmt-ignore const primitiveValueArraySerialized = [ - 255, 14, 65, 4, 34, 4, 116, 101, 115, 116, + 255, 15, 65, 4, 34, 4, 116, 101, 115, 116, 34, 1, 97, 48, 95, 36, 0, 4, ]; assertArrayEquals( @@ -48,7 +48,7 @@ function main() { circularObject.test = circularObject; // deno-fmt-ignore const circularObjectSerialized = [ - 255, 14, 111, 34, 4, 116, 101, 115, + 255, 15, 111, 34, 4, 116, 101, 115, 116, 94, 0, 34, 5, 116, 101, 115, 116, 50, 34, 2, 100, 100, 34, 5, 116, 101, 115, 116, 51, 34, 2, 97, |