Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add tests for ignoremark + character classes
  • Loading branch information
FROGGS committed May 9, 2015
1 parent b62c8ee commit 88920f4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion S05-modifier/ignoremark.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 11;
plan 14;

=begin description
Expand All @@ -26,4 +26,8 @@ ok('å' ~~ m:m/ä/, 'Both pattern and string may contain accents');
ok('a' ~~ m:m/ä/, 'Pattern may contain accents');
ok('ä' ~~ m:ignoremark/a/, 'Ignoremark: spelling out :ignoremark also works');

is('fooäàaáâåbar' ~~ m:m/a+ b/, 'äàaáâåb', 'Ignoremark: a+ b');
is('fooäàaáâåbar' ~~ m:m/<[ab]>+/, 'äàaáâåba', 'Ignoremark with character class');
is('fooäàaáâåbar' ~~ m:m/<-[a]>+/, 'foo', 'Ignoremark with negated character class');

# vim: syn=perl6 sw=4 ts=4 expandtab

0 comments on commit 88920f4

Please sign in to comment.