Testing criteria

Consider the following testing criteria:

  1. Command line: When testing the parameter data, any values as 0 should cause the first test to fail. For the second test, 0 should be replaced with a floating point value of your choice.

The command line must come in the following format:

volume/area, type, params 

For example, true, 1, 3.1, 33.12, 4.3 is valid; whereas, false, 1, 12 will fail. (It requires two values to be passed in.)

A command line such as false, 1, 12.1, 13.5, 1.4, 0 will not fail as anything in the parameter list past the required number of parameters for the calculation can be ignored.

If the command fails, the output should always be -1.

  1. Username and password: The username and passwords have to meet the criteria set out at the start of the puzzle. If they fail, the output should be either Username failed or Password failed. No other reasons are required.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset