Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Dec 6, 2018
1 parent 1bf555a commit f3bce9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion buffer_test.ts
Expand Up @@ -17,7 +17,7 @@ function init() {
if (testBytes == null) {
testBytes = new Uint8Array(N);
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();
testString = decoder.decode(testBytes);
Expand Down
4 changes: 2 additions & 2 deletions bufio_test.ts
Expand Up @@ -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;

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

0 comments on commit f3bce9c

Please sign in to comment.