2017-02-23 18:59:58 +00:00
|
|
|
/**
|
|
|
|
* Base58 tests.
|
|
|
|
*
|
2017-02-28 17:08:36 +00:00
|
|
|
* @author tlwr [toby@toby.codes]
|
2017-02-23 18:59:58 +00:00
|
|
|
*
|
|
|
|
* @copyright Crown Copyright 2017
|
|
|
|
* @license Apache-2.0
|
|
|
|
*/
|
2017-03-23 17:52:20 +00:00
|
|
|
import TestRegister from "../../TestRegister.js";
|
2017-03-21 22:41:44 +00:00
|
|
|
|
2017-02-23 18:59:58 +00:00
|
|
|
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"],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
]);
|