diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2018-12-17 17:49:10 +0100 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2018-12-17 11:49:10 -0500 |
| commit | f6dae45cd2bb0615c136188b4dba8a3272ac5d70 (patch) | |
| tree | 9330a72a0c9eda2f668d00f07a7c6b11d2edd346 /bufio_test.ts | |
| parent | 579b92de599b056c308a3b2d26f0b09188c4441b (diff) | |
First pass at streaming http response (denoland/deno_std#16)
Original: https://github.com/denoland/deno_std/commit/269665873a9219423085418d605b8af8ac2565dc
Diffstat (limited to 'bufio_test.ts')
| -rw-r--r-- | bufio_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bufio_test.ts b/bufio_test.ts index fb5dc23e8..5f32500a7 100644 --- a/bufio_test.ts +++ b/bufio_test.ts @@ -109,7 +109,7 @@ test(async function bufioBufReader() { for (let i = 0; i < texts.length - 1; i++) { texts[i] = str + "\n"; all += texts[i]; - str += String.fromCharCode((i % 26) + 97); + str += String.fromCharCode(i % 26 + 97); } texts[texts.length - 1] = all; @@ -294,7 +294,7 @@ test(async function bufioWriter() { const data = new Uint8Array(8192); for (let i = 0; i < data.byteLength; i++) { - data[i] = charCode(" ") + (i % (charCode("~") - charCode(" "))); + data[i] = charCode(" ") + i % (charCode("~") - charCode(" ")); } const w = new Buffer(); |
