2 # Copyright (C) 2006-2010, Parrot Foundation.
7 t/compilers/pge/02-match.t - test the Match class
12 % prove t/compilers/pge/02-match.t
16 Tests the Match class directly.
21 .include 'test_more.pir'
24 test_concat_on_a_match_object()
25 test_push_on_a_match_object()
28 .sub test_concat_on_a_match_object
29 load_bytecode 'PGE.pbc'
31 $P0 = compreg 'PGE::Perl6Regex'
35 is($P2, 'world', 'concat on a Match object (rt#39135)')
41 is($P4, 'hello world', 'concat on a Match object (rt#39135)')
44 .sub test_push_on_a_match_object
45 .local pmc match, str, arr
46 load_bytecode 'PGE.pbc'
47 match = new ['PGE';'Match']
53 is($I0, 1, 'push on a Match object')
55 is($P3, 'foo', 'push on a Match object')
62 # vim: expandtab shiftwidth=4 ft=pir: