It is easier to make a safe light bulb than to make a safe explosive.
After the discussions of the last few weeks, we are finally ready to build our test cases.
Of course, I wasn't satisfied with the simple approach, so I added a bit of code to sense swipes much as you would find on a touchscreen phone.
Many people confuse the idea of a test case working correctly with the idea of a program producing correct output.
I wanted to like the Vinculum. I really did.
Last week, we talked in general terms about how to test a binary-search function. Now let's get specific.
As I look around my lab, I see no fewer than 12 development boards of different kinds.
Binary search is a particularly instructive algorithm to figure out how to test.
I converted the standard Linux shell (bash) into a specialized programming language that can control a serial I/O board.
We will reduce a substantial part of our problem to calling these two functions repeatedly with suitably chosen test cases and verifying that they return the same results.