mirror of
https://github.com/denoland/std.git
synced 2024-11-22 04:59:05 +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