Merge pull request #123 from gchq/feature-comment

Feature: 'Comment' operation
This commit is contained in:
n1474335 2017-05-02 21:05:58 +01:00 committed by GitHub
commit c7611fbc05
4 changed files with 59 additions and 0 deletions

View file

@ -111,4 +111,34 @@ TestRegister.addTests([
},
],
},
{
name: "Comment: nothing",
input: "",
expectedOutput: "",
recipeConfig: [
{
"op": "Comment",
"args": [""]
}
]
},
{
name: "Fork, Comment, Base64",
input: "cat\nsat\nmat",
expectedOutput: "Y2F0\nc2F0\nbWF0\n",
recipeConfig: [
{
"op": "Fork",
"args": ["\\n", "\\n", false]
},
{
"op": "Comment",
"args": ["Testing 123"]
},
{
"op": "To Base64",
"args": ["A-Za-z0-9+/="]
}
]
},
]);