Challenge
Edge cases
…ordinary cases, then for the edges, where real programs break. Ordinary lists Below the function, write assert checks for an ordinary list of readings and for a list with only one value. Include a…
Showing 11–15 of 15
Challenge
…ordinary cases, then for the edges, where real programs break. Ordinary lists Below the function, write assert checks for an ordinary list of readings and for a list with only one value. Include a…
Challenge
…. Leave the function exactly as it is: the hidden tests break copies of it and expect your checks to notice. On the thresholds Bugs hide at the boundaries. Add checks for the values exactly on each…
Challenge
…read it line by line and print each line without its line break: [T+00:10:00] INFO Orbit insertion complete [T+00:12:05] WARN Battery 3 temperature high [T+00:14:47] ERROR Fuel valve 2 not responding…
Challenge
…the arithmetic is, and like the arithmetic it can quietly break. Write the test that keeps it honest. The hidden tests run your checks against broken versions of the function to see whether they…
Challenge
…the number of seconds it formats was typed in by hand at breakfast. Feed it the real time left, from the launch time and the clock. From the clock Replace remaining_s = 8100 with the real time left…