4 use Test::Builder::Tester tests => 9;
7 ok(1,"This is a basic test");
9 test_out("ok 1 - tested");
11 test_test("captured okay on basic");
13 test_out("ok 1 - tested");
15 test_test("captured okay again without changing number");
17 ok(1,"test unrelated to Test::Builder::Tester");
19 test_out("ok 1 - one");
20 test_out("ok 2 - two");
23 test_test("multiple tests");
25 test_out("not ok 1 - should fail");
26 test_err("# Failed test ($0 at line 29)");
27 test_err("# got: 'foo'");
28 test_err("# expected: 'bar'");
29 is("foo","bar","should fail");
30 test_test("testing failing");
38 test_test("testing failing on the same line with no name");
41 test_out("not ok 1 - name");
42 test_out("not ok 2 - name");
45 fail("name"); fail("name");
46 test_test("testing failing on the same line with the same name");
49 test_out("not ok 1 - name # TODO Something");
50 test_err("# Failed (TODO) test ($0 at line 53)");
52 local $TODO = "Something";
55 test_test("testing failing with todo");