Subject: | Out of order tests allowed to pass. |
Test::Harness allows the following to pass with only a warning.
1..3
ok 3
ok 2
ok 2
$ perl -MTest::Harness -wle 'runtests @ARGV' ~/tmp/foo.t
/Users/schwern/tmp/foo....ok 1/3Confused test output: test 2 answered
after test 3
/Users/schwern/tmp/foo....ok
All tests successful.
It also allows things like
1..3
ok 1
ok 1
ok 2
$ perl -MTest::Harness -wle 'runtests @ARGV' ~/tmp/foo.t
/Users/schwern/tmp/foo....ok 1/3Test output counter mismatch [test 3]
/Users/schwern/tmp/foo....ok
All tests successful.
And this:
$ perl -MTest::Harness -wle 'runtests @ARGV' ~/tmp/foo.t
/Users/schwern/tmp/foo....ok 1/3Confused test output: test 2 answered
after test 2
/Users/schwern/tmp/foo....ok
All tests successful.