mirror of
https://github.com/denoland/deno.git
synced 2025-09-13 22:26:20 +00:00
Use dprint for internal formatting (#6682)
This commit is contained in:
parent
9eca71caa1
commit
cde4dbb351
378 changed files with 3116 additions and 3121 deletions
|
@ -11,20 +11,20 @@ function assertArrayEquals(a1, a2) {
|
|||
}
|
||||
|
||||
function main() {
|
||||
// prettier-ignore
|
||||
// deno-fmt-ignore
|
||||
const fixture1 = [
|
||||
0xf0, 0x9d, 0x93, 0xbd,
|
||||
0xf0, 0x9d, 0x93, 0xae,
|
||||
0xf0, 0x9d, 0x94, 0x81,
|
||||
0xf0, 0x9d, 0x93, 0xbd
|
||||
];
|
||||
// prettier-ignore
|
||||
const fixture2 = [
|
||||
72, 101, 108, 108,
|
||||
111, 32, 239, 191,
|
||||
189, 239, 191, 189,
|
||||
32, 87, 111, 114,
|
||||
108, 100
|
||||
// deno-fmt-ignore
|
||||
const fixture2 = [
|
||||
72, 101, 108, 108,
|
||||
111, 32, 239, 191,
|
||||
189, 239, 191, 189,
|
||||
32, 87, 111, 114,
|
||||
108, 100
|
||||
];
|
||||
|
||||
const empty = Deno.core.encode("");
|
||||
|
@ -33,7 +33,7 @@ function main() {
|
|||
assertArrayEquals(Array.from(Deno.core.encode("𝓽𝓮𝔁𝓽")), fixture1);
|
||||
assertArrayEquals(
|
||||
Array.from(Deno.core.encode("Hello \udc12\ud834 World")),
|
||||
fixture2
|
||||
fixture2,
|
||||
);
|
||||
|
||||
const emptyBuf = Deno.core.decode(new Uint8Array(0));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue