This commit is contained in:
d98762625 2018-05-18 12:50:23 +01:00
parent bca73b496f
commit bfb405c4a6
3 changed files with 111 additions and 32 deletions

View file

@ -114,38 +114,38 @@ TestRegister.addTests([
// },
// ],
// },
// {
// name: "Jump: skips 1",
// input: [
// "shouldnt be changed",
// ].join("\n"),
// expectedOutput: [
// "shouldnt be changed",
// ].join("\n"),
// recipeConfig: [
// {
// op: "Jump",
// args: ["skipReplace", 10],
// },
// {
// op: "Find / Replace",
// args: [
// {
// "option": "Regex",
// "string": "shouldnt be changed"
// },
// "shouldnt be changed was changed",
// true,
// true,
// true,
// ],
// },
// {
// op: "Label",
// args: ["skipReplace"]
// },
// ],
// },
{
name: "Jump: skips 1",
input: [
"shouldnt be changed",
].join("\n"),
expectedOutput: [
"shouldnt be changed",
].join("\n"),
recipeConfig: [
{
op: "Jump",
args: ["skipReplace", 10],
},
{
op: "Find / Replace",
args: [
{
"option": "Regex",
"string": "shouldnt be changed"
},
"shouldnt be changed was changed",
true,
true,
true,
],
},
{
op: "Label",
args: ["skipReplace"]
},
],
},
// {
// name: "Conditional Jump: Skips 0",
// input: [