Assessment of test case coverage for format()
A machine test that automatically assesses the completeness of a list
of provided test cases for the format() function from
IIPP1. Your input file should contain a single Python definition:
- A list
TEST_CASES containing at most 10 test
cases for the function format() .
- Each test case in this list should be an integer in the range 0 to
5999 (inclusive).
These integers will be used as input to format() . You do
not need to provide the corresponding output. We will compute it from
our reference implementation. Note that submissions to OwlTest that do
not conform to this format are rejected.
Owltest will assess the completeness of the test cases in
TEST_CASES using a hidden suite of incorrect
implementations of format() that we have
compiled. Specifically, OwlTest will run each of these incorrect
implementations on the test cases in TEST_CASES . If an
incorrect implementation returns a correct answer on all tests in
TEST_CASES , OwlTest will record that the program
(incorrectly) passed the provided tests. If an incorrect
implementation returns an incorrect answer on at least one of the test
in TEST_CASES , OwlTest will record that the
implementation (correctly) failed the provided tests.
After performing these checks, OwlTest returns a code that you should
enter as the answer to Question 10 on Homework 3. The grade on
Coursera that you receive for the entered code will be determined by
the number of incorrect implementations that failed the provided
tests. To receive credit for this problem, your goal should be to
construct a list of tests that maximize the number of programs that
fail your provided tests.
Pylint style checking is not enabled for this activity. Score will
not be reported here.
|