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