mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 20:59:10 +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
|
@ -36,7 +36,7 @@ Deno.test("testPutVarbig", function (): void {
|
|||
putVarbig(buff, 0xffeeddccbbaa9988n);
|
||||
assertEquals(
|
||||
buff,
|
||||
new Uint8Array([0xff, 0xee, 0xdd, 0xcc, 0xbb, 0xaa, 0x99, 0x88])
|
||||
new Uint8Array([0xff, 0xee, 0xdd, 0xcc, 0xbb, 0xaa, 0x99, 0x88]),
|
||||
);
|
||||
});
|
||||
|
||||
|
@ -45,7 +45,7 @@ Deno.test("testPutVarbigLittleEndian", function (): void {
|
|||
putVarbig(buff, 0x8899aabbccddeeffn, { endian: "little" });
|
||||
assertEquals(
|
||||
buff,
|
||||
new Uint8Array([0xff, 0xee, 0xdd, 0xcc, 0xbb, 0xaa, 0x99, 0x88])
|
||||
new Uint8Array([0xff, 0xee, 0xdd, 0xcc, 0xbb, 0xaa, 0x99, 0x88]),
|
||||
);
|
||||
});
|
||||
|
||||
|
@ -132,7 +132,7 @@ Deno.test("testWriteVarbig", async function (): Promise<void> {
|
|||
await buff.read(data);
|
||||
assertEquals(
|
||||
data,
|
||||
new Uint8Array([0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08])
|
||||
new Uint8Array([0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08]),
|
||||
);
|
||||
});
|
||||
|
||||
|
@ -143,7 +143,7 @@ Deno.test("testWriteVarbigLittleEndian", async function (): Promise<void> {
|
|||
await buff.read(data);
|
||||
assertEquals(
|
||||
data,
|
||||
new Uint8Array([0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08])
|
||||
new Uint8Array([0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08]),
|
||||
);
|
||||
});
|
||||
|
||||
|
@ -167,7 +167,7 @@ Deno.test("testVarbigBytes", function (): void {
|
|||
const rslt = varbigBytes(0x0102030405060708n);
|
||||
assertEquals(
|
||||
rslt,
|
||||
new Uint8Array([0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08])
|
||||
new Uint8Array([0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08]),
|
||||
);
|
||||
});
|
||||
|
||||
|
@ -175,7 +175,7 @@ Deno.test("testVarbigBytesLittleEndian", function (): void {
|
|||
const rslt = varbigBytes(0x0807060504030201n, { endian: "little" });
|
||||
assertEquals(
|
||||
rslt,
|
||||
new Uint8Array([0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08])
|
||||
new Uint8Array([0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08]),
|
||||
);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue