Add ConvertToNATOAlphabet tests

This commit is contained in:
Marvin Wendt 2019-10-11 15:32:14 +02:00
parent 4122d4207d
commit acf38e47ba
No known key found for this signature in database
GPG Key ID: 273E01721E1C5338
1 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,32 @@
/**
* @author MarvinJWendt [git@marvinjwendt.com]
* @copyright Crown Copyright 2019
* @license Apache-2.0
*/
import TestRegister from "../../lib/TestRegister.mjs";
TestRegister.addTests([
{
name: "Convert to NATO alphabet: nothing",
input: "",
expectedOutput: "",
recipeConfig: [
{
op: "Convert to NATO alphabet",
args: [""]
}
]
},
{
name: "Convert to NATO alphabet: full alphabet with numbers",
input: "abcdefghijklmnopqrstuvwxyz0123456789",
expectedOutput: "alfa bravo charlie delta echo foxtrot golf hotel india juliett kilo lima mike november oscar papa quebec romeo sierra tango uniform victor whiskey xray yankee zulu zero one two three four five six seven eight nine ",
recipeConfig: [
{
op: "Convert to NATO alphabet",
args: [""]
}
]
}
]);