Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Track change of sameaccent -> samemark
- Loading branch information
Showing
2 changed files
with
21 additions
and
21 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
use v6; | ||
use Test; | ||
|
||
# L<S32::Str/Str/"=item samemark"> | ||
|
||
plan 7; | ||
|
||
is(samemark('ABb', 'ƗƗƗ'), 'ȺɃƀ', 'samemark as a function works'); | ||
|
||
# should this be an exception or a Failure instead? | ||
is(samemark('AF', 'ƗƗ'), 'ȺF', 'samemark without matching character silently fails'); | ||
|
||
is('ABb'.samemark('ƗƗƗ'), 'ȺɃƀ', 'samemark as a method works'); | ||
|
||
is('text'.samemark('asdf'), 'text', 'samemark without a change (no accents)'); | ||
is('ȺɃƀ'.samemark('ƗƗƗ'), 'ȺɃƀ', 'samemark without a change (accents already present'); | ||
|
||
is('text'.samemark('this is longer'), 'text', 'samemark with longer base string'); | ||
is('ABCD'.samemark('ƗƗ'), 'ȺɃCD', 'samemark with longer source string'); | ||
|
||
# vim: ft=perl6 |