Machine-generated Tests
Example: testing a sort program
Human testing will look something like:
$ ./mysort
line 1
line 2
line3
^D
|
Program to generate test data:
#!/usr/bin/perl
for (1..1000) { printf "%c",(rand()*10000)%128; }
|
(The %128 means that at least we get an ascii character code, but can be any ascii character)
|