Skip to content

Commit

Permalink
uniname tests wrt to type objects & empty strings
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Nov 9, 2015
1 parent b9fa40a commit 85f1518
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion S15-unicode-information/uniname.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,21 @@ use v6;

use Test;

plan 31;
plan 39;

# Unicode version pragma not needed here, as names cannot change.

# L<S15/Character Name>

is uniname(""), Str, "uniname an empty string yields a Str type object";
is uninames(""), (), "uninames an empty string yields an empty list";
is "".uniname, Str, "''.uniname yields a Str type object";
is "".uninames, (), "''.uninames yields an empty list";
throws-like "uniname Str", X::Multi::NoMatch, 'cannot call uniname with a Str';
throws-like "Str.uniname", X::Multi::NoMatch, 'cannot call uniname with a Str';
throws-like "uniname Int", X::Multi::NoMatch, 'cannot call uniname with a Int';
throws-like "Int.uniname", X::Multi::NoMatch, 'cannot call uniname with a Int';

# method forms
#?niecza 2 skip "uniname NYI"
is 0x30.uniname, "DIGIT ZERO", "method uniname returns a name";
Expand Down

0 comments on commit 85f1518

Please sign in to comment.