2 # Copyright (C) 2005-2008, Parrot Foundation.
6 load_bytecode 'Test/Builder/Tester.pbc'
12 test = new [ 'Test'; 'Builder' ], tb_args
20 plan = get_global [ 'Test'; 'Builder'; 'Tester' ], 'plan'
21 test_pass = get_global [ 'Test'; 'Builder'; 'Tester' ], 'test_pass'
22 test_fail = get_global [ 'Test'; 'Builder'; 'Tester' ], 'test_fail'
23 test_out = get_global [ 'Test'; 'Builder'; 'Tester' ], 'test_out'
24 test_diag = get_global [ 'Test'; 'Builder'; 'Tester' ], 'test_diag'
25 test_test = get_global [ 'Test'; 'Builder'; 'Tester' ], 'test_test'
29 test_out( 'ok 1 - hi' )
31 test_test( 'passing test')
33 test_out( 'not ok 2 - bye' )
35 test_test( 'failing test')
39 test_test( 'Simple done_testing works' )
42 test_out( "Expected 3 but ran 2" )
43 test.'done_testing'(3)
44 test_test( 'done_testing with bad plan works' )
53 # vim: expandtab shiftwidth=4 ft=pir: