Skip to content

Commit 3efe6cb

Browse files
committed
[6.d REVIEW] Rename Str.parse-names to Str.uniparse
The original name was chosen to align with `.parse-base` that parses out base-X numbers out strings. However, we have a whole block of more closely related routines all named in `.uni*` format, so it makes sense for this routine's naming to align with those. They are: `infix:<unicmp>`, `unimatch`, `uniname`, `uninames`, `unival`, `univals`, `uniprop`, `uniprop-bool`, `uniprop-int`, `uniprop-str`, `uniprops`. Refs: Raku/6.d-prep@efa24f6 https://irclog.perlgeek.de/perl6-dev/2017-12-21#i_15609653 Rakudo impl: rakudo/rakudo@2a8287cf89
1 parent c74d7f3 commit 3efe6cb

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

S32-str/parse-names.t renamed to S32-str/uniparse.t

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
use v6;
22
use Test;
33

4-
plan 10 * 2;
4+
plan 10 * 4;
55

6-
for &parse-names, Str.^lookup('parse-names') -> &pn {
6+
# `uniparse` Tests. Note `parse-names` is the original "experimental" name
7+
# of this routine. It issues deprecation warning in Rakudo in 6.d and will
8+
# be removed in 6.e. Other implementations may wish to restructure these
9+
# tests and not implement `parse-names` at all.
10+
11+
for &parse-names, Str.^lookup('parse-names'),
12+
&uniparse, Str.^lookup('uniparse') -> &pn
13+
{
714
my $t = " ({&pn.^name.lc} form)";
815

916
is-deeply &pn(''), '', "empty string $t";

0 commit comments

Comments
 (0)