mirror of
https://github.com/denoland/deno.git
synced 2025-03-04 09:57:11 -05:00
Format
This commit is contained in:
parent
1bf555ab2f
commit
f3bce9c7b8
2 changed files with 3 additions and 3 deletions
|
@ -17,7 +17,7 @@ function init() {
|
||||||
if (testBytes == null) {
|
if (testBytes == null) {
|
||||||
testBytes = new Uint8Array(N);
|
testBytes = new Uint8Array(N);
|
||||||
for (let i = 0; i < N; i++) {
|
for (let i = 0; i < N; i++) {
|
||||||
testBytes[i] = "a".charCodeAt(0) + i % 26;
|
testBytes[i] = "a".charCodeAt(0) + (i % 26);
|
||||||
}
|
}
|
||||||
const decoder = new TextDecoder();
|
const decoder = new TextDecoder();
|
||||||
testString = decoder.decode(testBytes);
|
testString = decoder.decode(testBytes);
|
||||||
|
|
|
@ -109,7 +109,7 @@ test(async function bufioBufReader() {
|
||||||
for (let i = 0; i < texts.length - 1; i++) {
|
for (let i = 0; i < texts.length - 1; i++) {
|
||||||
texts[i] = str + "\n";
|
texts[i] = str + "\n";
|
||||||
all += texts[i];
|
all += texts[i];
|
||||||
str += String.fromCharCode(i % 26 + 97);
|
str += String.fromCharCode((i % 26) + 97);
|
||||||
}
|
}
|
||||||
texts[texts.length - 1] = all;
|
texts[texts.length - 1] = all;
|
||||||
|
|
||||||
|
@ -294,7 +294,7 @@ test(async function bufioWriter() {
|
||||||
const data = new Uint8Array(8192);
|
const data = new Uint8Array(8192);
|
||||||
|
|
||||||
for (let i = 0; i < data.byteLength; i++) {
|
for (let i = 0; i < data.byteLength; i++) {
|
||||||
data[i] = charCode(" ") + i % (charCode("~") - charCode(" "));
|
data[i] = charCode(" ") + (i % (charCode("~") - charCode(" ")));
|
||||||
}
|
}
|
||||||
|
|
||||||
const w = new Buffer();
|
const w = new Buffer();
|
||||||
|
|
Loading…
Add table
Reference in a new issue