From e9de23ffee04ac95469c5562f8c2f84e1fe2b393 Mon Sep 17 00:00:00 2001 From: Tim Date: Tue, 27 Aug 2024 08:40:43 +0200 Subject: [PATCH] initial commit --- yaml/stringify_test.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/yaml/stringify_test.ts b/yaml/stringify_test.ts index 7a9872c1e181..f625834034ef 100644 --- a/yaml/stringify_test.ts +++ b/yaml/stringify_test.ts @@ -749,3 +749,14 @@ Deno.test({ ); }, }); + +Deno.test({ + name: "stringify() handles duplicate binary references", + fn() { + const a = new Uint8Array(); + assertEquals( + stringify([a, a]), + "- ! AAAA\n- ! AAAA\n", + ); + }, +});