diff options
Diffstat (limited to 'std/io/ioutil_test.ts')
-rw-r--r-- | std/io/ioutil_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/std/io/ioutil_test.ts b/std/io/ioutil_test.ts index d00986da5..bb01811ad 100644 --- a/std/io/ioutil_test.ts +++ b/std/io/ioutil_test.ts @@ -73,7 +73,7 @@ Deno.test(function testSliceLongToBytes2(): void { Deno.test(async function testCopyN1(): Promise<void> { const w = new Buffer(); const r = stringsReader("abcdefghij"); - const n = await copyN(w, r, 3); + const n = await copyN(r, w, 3); assertEquals(n, 3); assertEquals(w.toString(), "abc"); }); @@ -81,7 +81,7 @@ Deno.test(async function testCopyN1(): Promise<void> { Deno.test(async function testCopyN2(): Promise<void> { const w = new Buffer(); const r = stringsReader("abcdefghij"); - const n = await copyN(w, r, 11); + const n = await copyN(r, w, 11); assertEquals(n, 10); assertEquals(w.toString(), "abcdefghij"); }); |