|
From Test::Simple to Test::Extreme - Think Like A Bug
|
42
|
|
|
Some Specific Things to Test
Perl saves us from a lot of general programming boundary conditions, especially by not crashing on bad data
But sometimes Perl's DWIM leads to bugs
What about automatic conversion between strings and numbers?
Hash key autovification?
The string "0" being false?
DBI NULL vs. Perl undef
DBI $rows = '0E0'
Comparison tests for the wrong kind of data (e.g. == vs. eq)?
= instead of ==
automatic conversion of line endings \n on input
SQL injection
what else?
keep a library of testing strategies
|
|