Skip to content

Commit

Permalink
Update a test to use the new NQPCursor type.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Nov 15, 2011
1 parent 2da67f4 commit 124f95e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions t/nqp/50-regex.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

plan(7);

ok(Regex::Cursor.parse('a', :rule(/<alpha>/), :p(0)),
ok(NQPCursor.parse('a', :rule(/<alpha>/), :p(0)),
'Can parse "a" with <alpha> and :p(0)');

ok(!Regex::Cursor.parse('a', :rule(/<alpha>/), :p(1)),
ok(!NQPCursor.parse('a', :rule(/<alpha>/), :p(1)),
'Can parse "a" with <alpha> :p(off-range)');

ok(!Regex::Cursor.parse('a', :rule(/<alpha>/), :c(1)),
ok(!NQPCursor.parse('a', :rule(/<alpha>/), :c(1)),
'Can parse "a" with <alpha> :c(off-range)');

ok(!Regex::Cursor.parse('a', :rule(/<alpha>/), :p(5)),
ok(!NQPCursor.parse('a', :rule(/<alpha>/), :p(5)),
'Can parse "a" with <alpha> :p(far-off-range)');

ok(?('ABC' ~~ /:i abc/), ':i works with literals');
Expand Down

0 comments on commit 124f95e

Please sign in to comment.