Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

41 lines (30 sloc) 0.89 kb
use v6;
use Test;
plan 8;
=begin description
Testing the C<:mm> or C<:samemark> modifier - as always, need more tests
# L<S05/Modifiers/:samemark>
=end description
#?pugs 999 skip feature
{
my $s = 'äaä';
ok $s ~~ s:mm/aaa/ooo/, ':mm implies :m';
is $s, 'öoö',
':mm transported mark information from source to destination';
}
{
my $s = 'äa';
ok $s ~~ s:mm/a+/oooo/, ':mm works with quantified atoms';
is $s, 'öooo', ':mm transported case information to longer substitution string';
}
{
my $s = '';
ok $s ~~ s:mm/a+/oooo/, ':mm works with quantified atoms';
is $s, 'oööö', ':mm transported case information to longer substitution string';
}
{
my $s = 'aäää oööö';
ok $s ~~ s:mm:s/a+ o+/OOO UU/, 'combined :mm and :s match';
is $s, 'OÖÖ UÜ', ':mm :s carry marks on a word-by-word base';
}
# vim: ft=perl6
Jump to Line
Something went wrong with that request. Please try again.