In this task you need to imagine that you — yes, YOU — have developed a problem on Cody for me to solve, and now you need to develop a Test Suite to check whether my submitted solutions meet your requirements or not.
So the tables are turned! You are now in the role of Tester! I am in the role of Player!
The problem you've set me is to:
You provide me with the following example for the function defined as s = SINE(a):
% INPUT a = 45 % degrees % OUTPUT s = 1/sqrt(2)
Now I have responded by submitting a large number of purported 'solutions', some of which are reasonably accurate, and others which are either too imprecise or else logically flawed.
Your Test Suite (contained within your function testSuite) must address each of the elements of your problem specification:
When creating a Test Suite for a Cody problem it is a good habit to try to anticipate the tactics that diverse Players might employ!
See also:
339 Solvers
51 Solvers
Project Euler: Problem 7, Nth prime
340 Solvers
65 Solvers
Matrix with different incremental runs
194 Solvers