mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-02 06:01:02 +01:00
35 lines
743 B
JavaScript
35 lines
743 B
JavaScript
/**
|
|
* Base58 tests.
|
|
*
|
|
* @author tlwr [toby@toby.codes]
|
|
*
|
|
* @copyright Crown Copyright 2017
|
|
* @license Apache-2.0
|
|
*/
|
|
import TestRegister from "../../lib/TestRegister.mjs";
|
|
|
|
TestRegister.addTests([
|
|
{
|
|
name: "To Morse Code: 'SOS'",
|
|
input: "SOS",
|
|
expectedOutput: "... --- ...",
|
|
recipeConfig: [
|
|
{
|
|
op: "To Morse Code",
|
|
args: ["-/.", "Space", "Line feed"],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: "From Morse Code '... --- ...'",
|
|
input: "... --- ...",
|
|
expectedOutput: "SOS",
|
|
recipeConfig: [
|
|
{
|
|
op: "From Morse Code",
|
|
args: ["Space", "Line feed"],
|
|
},
|
|
],
|
|
},
|
|
]);
|