12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- /**
- * Flow Control tests.
- *
- * @author tlwr [toby@toby.codes]
- *
- * @copyright Crown Copyright 2017
- * @license Apache-2.0
- */
- TestRegister.addTests([
- {
- name: "Fork: nothing",
- input: "",
- expectedOutput: "",
- recipeConfig: [
- {
- op: "Fork",
- args: ["\n", "\n", false],
- },
- ],
- },
- {
- name: "Fork, Merge: nothing",
- input: "",
- expectedOutput: "",
- recipeConfig: [
- {
- op: "Fork",
- args: ["\n", "\n", false],
- },
- {
- op: "Merge",
- args: [],
- },
- ],
- },
- {
- name: "Fork, (expect) Error, Merge",
- input: "1\n2\na\n4",
- expectedError: true,
- recipeConfig: [
- {
- op: "Fork",
- args: ["\n", "\n", false],
- },
- {
- op: "To Base",
- args: [16],
- },
- {
- op: "Merge",
- args: [],
- },
- ],
- },
- ]);
|