fix a bug in alphabet

This commit is contained in:
IChenDEV 2020-08-06 14:15:11 +08:00
parent 4b235e1166
commit 4b5e631eec
3 changed files with 7 additions and 5 deletions

View file

@ -15,7 +15,7 @@ import OperationError from "../errors/OperationError.mjs";
export const ALPHABET_OPTIONS = [ export const ALPHABET_OPTIONS = [
{ {
name: "Standard", name: "Standard",
value: "A-Za-z0-9!#$%&()*+,./:;<=>?@[]^_`{|}~\"", value: "A-Za-z0-9!#$%&()*+,./:;<=>?@[]^_`{|}~&quot;",
} }
]; ];

View file

@ -23,6 +23,7 @@ import "./tests/BaconCipher.mjs";
import "./tests/Base58.mjs"; import "./tests/Base58.mjs";
import "./tests/Base64.mjs"; import "./tests/Base64.mjs";
import "./tests/Base62.mjs"; import "./tests/Base62.mjs";
import "./tests/Base91.mjs";
import "./tests/BitwiseOp.mjs"; import "./tests/BitwiseOp.mjs";
import "./tests/ByteRepr.mjs"; import "./tests/ByteRepr.mjs";
import "./tests/CartesianProduct.mjs"; import "./tests/CartesianProduct.mjs";

View file

@ -1,9 +1,9 @@
/** /**
* Base64 tests. * Base91 tests.
* *
* @author n1474335 [n1474335@gmail.com] * @author idevlab [nidevlab@outlook.com]
* *
* @copyright Crown Copyright 2018 * @copyright Crown Copyright 2020
* @license Apache-2.0 * @license Apache-2.0
*/ */
import TestRegister from "../../lib/TestRegister.mjs"; import TestRegister from "../../lib/TestRegister.mjs";
@ -15,7 +15,8 @@ TestRegister.addTests([
expectedOutput: "idevlab", expectedOutput: "idevlab",
recipeConfig: [ recipeConfig: [
{ {
op: "From Base64" op: "From Base91",
args: ["A-Za-z0-9!#$%&()*+,./:;<=>?@[]^_`{|}~&quot;"],
}, },
], ],
}, },