migrate deno_path to deno_std (denoland/deno_std#26)

Previously https://github.com/zhmushan/deno_path

Original: 1a35f9daf5
This commit is contained in:
木杉 2018-12-19 10:29:39 +08:00 committed by Ryan Dahl
parent 3c8f564ab8
commit 2d58da520f
16 changed files with 2292 additions and 3 deletions

View file

@ -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();