diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2018-12-06 17:18:10 -0500 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2018-12-06 17:18:10 -0500 |
| commit | c5871cb996d42eec2453b86003f305ec62ee3e46 (patch) | |
| tree | 96c7ff7367cdee024a67cb9f7fab85970e708c5f /bufio_test.ts | |
| parent | 17c255581dbeff6bad6fe385b6cdee174e3f93ae (diff) | |
Format
Original: https://github.com/denoland/deno_std/commit/f3bce9c7b8e75846c33d4b8672510092b92b3139
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 5f32500a7..fb5dc23e8 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(); |
