Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
baggy assignment fails slightly differently now
  • Loading branch information
TimToady committed Nov 10, 2015
1 parent 5a0e7a4 commit b6cbc45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion S02-types/baghash.t
Expand Up @@ -538,7 +538,7 @@ sub showkv($x) {
$b<a> = 42;
is $b<a>, 42, 'did we set an Int value';
throws-like { $b<a> = "foo" },
X::Multi::NoMatch, # X::TypeCheck::Assignment ???
X::Str::Numeric, # X::TypeCheck::Assignment ???
'Make sure we cannot assign Str on a key';

$_ = 666 for $b.values;
Expand Down
2 changes: 1 addition & 1 deletion integration/advent2012-day13.t
Expand Up @@ -28,7 +28,7 @@ is-deeply %words1.keys.sort, %words1.keys.sort, 'standard vs baggy word-count';
is-deeply %words1.values.sort, %words1.values.sort, 'standard vs baggy word-count';
lives-ok {EVAL q<%words1{"the"} = "green">}, 'hash assign (lives)';
throws-like {EVAL q<%words2{"the"} = "green">},
X::Multi::NoMatch,
X::Str::Numeric,
'baggy assign (dies)';

# use {...}.Bag constructor (dwarring's reply to this post)
Expand Down

0 comments on commit b6cbc45

Please sign in to comment.