summaryrefslogtreecommitdiff
path: root/net/bufio_test.ts
diff options
context:
space:
mode:
author木杉 <zhmushan@qq.com>2018-12-19 10:29:39 +0800
committerRyan Dahl <ry@tinyclouds.org>2018-12-18 21:29:39 -0500
commit2d58da520fffaeaee1bceeb33b6e3dc339ea68a3 (patch)
treeb6b8beb08e828b45ca51fb5bbc44330d45b62df5 /net/bufio_test.ts
parent3c8f564ab8c3087bac8256723aed9572faba756f (diff)
migrate deno_path to deno_std (denoland/deno_std#26)
Previously https://github.com/zhmushan/deno_path Original: https://github.com/denoland/deno_std/commit/1a35f9daf5aa1c10c61d62cccbe7f9ae3c615a0e
Diffstat (limited to 'net/bufio_test.ts')
-rw-r--r--net/bufio_test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bufio_test.ts b/net/bufio_test.ts
index 19954bdf6..96490a6c9 100644
--- a/net/bufio_test.ts
+++ b/net/bufio_test.ts
@@ -108,7 +108,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;
@@ -293,7 +293,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();