Skip to content

Commit

Permalink
Make unival tests less picky about how they die
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Jan 5, 2019
1 parent 330ef1c commit 9137a7d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions S15-unicode-information/unival.t
Expand Up @@ -12,10 +12,10 @@ is unival(""), Nil, "unival an empty string yields Nil";
is univals(""), (), "univals an empty string yields an empty list";
is "".unival, Nil, "''.unival yields Nil";
is "".univals, (), "''.univals yields an empty list";
throws-like "unival Str", X::Multi::NoMatch, 'cannot call unival with a Str';
throws-like "Str.unival", X::Multi::NoMatch, 'cannot call unival with a Str';
throws-like "unival Int", X::Multi::NoMatch, 'cannot call unival with a Int';
throws-like "Int.unival", X::Multi::NoMatch, 'cannot call unival with a Int';
dies-ok { unival Str }, 'cannot call unival with a Str';
dies-ok { Str.unival }, 'cannot call unival with a Str';
dies-ok { unival Int }, 'cannot call unival with a Int';
dies-ok { Int.unival }, 'cannot call unival with a Int';

is unival(0x30).WHAT.gist, '(Int)', "0x30 is Int";
is unival(0x30), 0, "0x30 has numeric value 0";
Expand Down

0 comments on commit 9137a7d

Please sign in to comment.