Refactor the "check categories and severity" logic in diag.t
authorNicholas Clark <nick@ccl4.org>
Wed, 22 May 2013 09:48:03 +0000 (11:48 +0200)
committerNicholas Clark <nick@ccl4.org>
Thu, 23 May 2013 12:32:40 +0000 (14:32 +0200)
commit4a32881b5b710fd45b3e9a595542cb4bcf813ac6
tree8622fae8329f97691fad32a12a9d9ff85ccc36a9
parentdfe12d64f471217d8004892c05035d320449ae24
Refactor the "check categories and severity" logic in diag.t

Move the "todo" bailout as early as possible, before any work is done.
Replace C<use 5.01> [sic] with C<use feature 'state'>, as this makes the
intent much clearer.
Use parenthesis for like() and is() as this is consistent with the rest of the
test, and permits a simplification of the BEGIN handling.
t/porting/diag.t