test(yaml): add duplicate binary references test (#5837)

This commit is contained in:
Tim Reichen 2024-08-27 10:26:08 +02:00 committed by GitHub
parent 2b66301364
commit eeaada9c18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -749,3 +749,14 @@ Deno.test({
);
},
});
Deno.test({
name: "stringify() handles duplicate binary references",
fn() {
const a = new Uint8Array();
assertEquals(
stringify([a, a]),
"- !<tag:yaml.org,2002:binary> AAAA\n- !<tag:yaml.org,2002:binary> AAAA\n",
);
},
});