Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix some incorrect assumptions in baghash.t
there are more to fix in this file, but not by me.
  • Loading branch information
moritz committed Aug 22, 2015
1 parent 217b1af commit b143d8a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions S02-types/baghash.t
Expand Up @@ -141,9 +141,9 @@ sub showkv($x) {
}

{
my $b = BagHash.new([ foo => 10, bar => 17, baz => 42, santa => 0 ]);
isa-ok $b, BagHash, '&BagHash.new given an array of pairs produces a BagHash';
is +$b, 1, "... with one element";
my $b = BagHash.new(1, [ foo => 10, bar => 17, baz => 42, santa => 0 ]);
isa-ok $b, BagHash, '&BagHash.new given something and an array of pairs produces a BagHash';
is +$b, 2, "... with two elements";
}

{
Expand All @@ -155,9 +155,9 @@ sub showkv($x) {
}

{
my $b = BagHash.new({ foo => 10, bar => 17, baz => 42, santa => 0 });
isa-ok $b, BagHash, '&BagHash.new given a Hash produces a BagHash';
is +$b, 1, "... with one element";
my $b = BagHash.new(1, { foo => 10, bar => 17, baz => 42, santa => 0 });
isa-ok $b, BagHash, '&BagHash.new given a Hash and something produces a BagHash';
is +$b, 2, "... with one element";
}

{
Expand Down

0 comments on commit b143d8a

Please sign in to comment.