A pool gives a teen ticket to ages to , both included. You will write the check, a test plan with every kind of test data, and a loop that runs the plan.
Your tasks.
is_teen, return True only for a whole number from 13 to 19. Return False for anything else, including text.tests with pairs (age, expected). Include a normal value, both extreme values, both rejected boundary values and one abnormal value that is text.passed to the number of tests where is_teen(age) equals the expected result.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…