Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Adapt applicable tests to use .total rather than .elems
  • Loading branch information
lizmat committed Oct 3, 2013
1 parent c7c53a7 commit 3ee1ee0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion S02-types/bag.t
Expand Up @@ -42,7 +42,7 @@ sub showkv($x) {
is ~$b<a b>, "5 1", 'Multiple-element access';
is ~$b<a santa b easterbunny>, "5 0 1 0", 'Multiple-element access (with nonexistent elements)';

is $b.elems, 8, '.elems gives sum of values';
is $b.total, 8, '.total gives sum of values';
is +$b, 8, '+$bag gives sum of values';
}

Expand Down
2 changes: 1 addition & 1 deletion S02-types/baghash.t
Expand Up @@ -43,7 +43,7 @@ sub showkv($x) {
is ~$b<a b>, "5 1", 'Multiple-element access';
is ~$b<a santa b easterbunny>, "5 0 1 0", 'Multiple-element access (with nonexistent elements)';

is $b.elems, 8, '.elems gives sum of values';
is $b.total, 8, '.total gives sum of values';
is +$b, 8, '+$bag gives sum of values';

lives_ok { $b<a> = 42 }, "Can assign to an existing element";
Expand Down

0 comments on commit 3ee1ee0

Please sign in to comment.