chore: fixed various misspellings and other typos (#8691)

This commit is contained in:
Anh Hong 2020-12-11 02:45:45 +07:00 committed by GitHub
parent fd9b0202c1
commit b8bc24d167
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 67 additions and 67 deletions

View file

@ -3,7 +3,7 @@ import { assertEquals } from "../testing/asserts.ts";
import { Ascii85Standard, decode, encode } from "./ascii85.ts";
type TestCases = Partial<{ [index in Ascii85Standard]: string[][] }>;
const utf8encoder = new TextEncoder();
const testCasesNoDelimeter: TestCases = {
const testCasesNoDelimiter: TestCases = {
Adobe: [
["test", "FCfN8"],
["ascii85", "@<5pmBfIs"],
@ -76,7 +76,7 @@ const testCasesNoDelimeter: TestCases = {
[" ", "arR^H"],
],
};
const testCasesDelimeter: TestCases = {
const testCasesDelimiter: TestCases = {
Adobe: [
["test", "<~FCfN8~>"],
["ascii85", "<~@<5pmBfIs~>"],
@ -116,7 +116,7 @@ const testCasesDelimeter: TestCases = {
],
};
for (const [standard, tests] of Object.entries(testCasesNoDelimeter)) {
for (const [standard, tests] of Object.entries(testCasesNoDelimiter)) {
if (tests === undefined) continue;
Deno.test({
name: `[encoding/ascii85] encode ${standard}`,
@ -144,10 +144,10 @@ for (const [standard, tests] of Object.entries(testCasesNoDelimeter)) {
},
});
}
for (const [standard, tests] of Object.entries(testCasesDelimeter)) {
for (const [standard, tests] of Object.entries(testCasesDelimiter)) {
if (tests === undefined) continue;
Deno.test({
name: `[encoding/ascii85] encode ${standard} with delimeter`,
name: `[encoding/ascii85] encode ${standard} with delimiter`,
fn(): void {
for (const [bin, b85] of tests) {
assertEquals(
@ -162,7 +162,7 @@ for (const [standard, tests] of Object.entries(testCasesDelimeter)) {
});
Deno.test({
name: `[encoding/ascii85] decode ${standard} with delimeter`,
name: `[encoding/ascii85] decode ${standard} with delimiter`,
fn(): void {
for (const [bin, b85] of tests) {
assertEquals(