Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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
  • Loading branch information
zoffixznet committed Dec 22, 2017
1 parent c74d7f3 commit 3efe6cb
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions S32-str/parse-names.t → S32-str/uniparse.t
@@ -1,9 +1,16 @@
use v6;
use Test;

plan 10 * 2;
plan 10 * 4;

for &parse-names, Str.^lookup('parse-names') -> &pn {
# `uniparse` Tests. Note `parse-names` is the original "experimental" name
# of this routine. It issues deprecation warning in Rakudo in 6.d and will
# be removed in 6.e. Other implementations may wish to restructure these
# tests and not implement `parse-names` at all.

for &parse-names, Str.^lookup('parse-names'),
&uniparse, Str.^lookup('uniparse') -> &pn
{
my $t = " ({&pn.^name.lc} form)";

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

0 comments on commit 3efe6cb

Please sign in to comment.