2 # Copyright (C) 2001-2010, Parrot Foundation.
11 % prove t/library/pge-hs.t
15 Grammar Engine Haskell Output tests
21 .include 'test_more.pir'
27 .sub test_pge_hs_match
28 .local pmc match, add_rule
31 load_bytecode "PGE.pbc"
32 load_bytecode "PGE/Hs.pir"
34 match = get_global ['PGE';'Hs'], "match"
35 add_rule = get_global ['PGE';'Hs'], "add_rule"
37 result = match("test", "t(.<foo>)t")
38 eq result, "PGE_Match 0 4 [PGE_Match 1 3 [] [(\"foo\", PGE_Match 2 3 [] [])]] []\n", OK
39 ok(0, 'PGE::Hs match')
42 ok(1, 'PGE::Hs match')
49 # vim: expandtab shiftwidth=4 ft=pir: