mirror of
https://github.com/denoland/std.git
synced 2024-11-21 12:40:03 +00:00
test(yaml): add duplicate binary references test (#5837)
This commit is contained in:
parent
2b66301364
commit
eeaada9c18
@ -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",
|
||||
);
|
||||
},
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user