Skip to content

Creating input tests

The format of an input test file is as follows:

  1. A set of input strings.
  2. A delimeter separating the input from the output: #####.
  3. The expected output.
  4. A delimeter separating the previous test case from the following one: -----.

Example

[Copy Code](javascript:void(0)) HTML
1 2 3 4 2 ##### 1 4 9 16 ----- 0 5 3 4 3 ##### 0 125 27 64

A test file can contain as many test cases as needed.