Skip to content

Commit

Permalink
.samemark with empty-string argument must throw
Browse files Browse the repository at this point in the history
RT#128615
  • Loading branch information
zoffixznet committed Jul 13, 2016
1 parent 01728bd commit 933588c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion S32-str/samemark.t
Expand Up @@ -3,7 +3,7 @@ use Test;

# L<S32::Str/Str/"=item samemark">

plan 8;
plan 9;

#?rakudo.jvm 8 skip 'samemark NYI'
is(samemark('zoo', 'ŏôō'), 'z̆ôō', 'samemark as a function works');
Expand All @@ -18,4 +18,11 @@ is('ẓo⃥o⃝'.samemark('ŏôō'), 'z̆ôō', 'samemark changes to new accent
is('tëxt'.samemark('thiș is longer'), 'texț', 'samemark with longer base string');
is('zoö'.samemark('ŏô'), 'z̆ôô', 'samemark with longer source string');

# RT #128615
{
throws-like { a.samemark: }, X::AdHoc,
message => /"Must have at least 1 char of pattern with 'samemark'"/,
'.samemark with empty-string argument throws';
}

# vim: ft=perl6

0 comments on commit 933588c

Please sign in to comment.