Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Some more fudging
Specifcally by making 2 skipped non-test lines tests
  • Loading branch information
lizmat committed May 17, 2013
1 parent 930f470 commit f69337d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions S09-hashes/objecthash.t
Expand Up @@ -16,15 +16,15 @@ plan 31;
dies_ok { %h{Mu.new} = 3 }, 'Any-typed hash does not like Mu keys';
#?pugs todo
ok %h.keys[0] === $a, 'returned key is correct';
}
} #4

{
my %h{Int};
%h{2} = 3;
is %h{1 + 1}, 3, 'value-type semantics';
#?pugs todo
dies_ok { %h{'foo'} }, 'non-conformant type dies';
}
} #2

# combinations of typed and objecthash
{
Expand Down Expand Up @@ -64,26 +64,26 @@ plan 31;
lives_ok { %h.push: 0.9 => 3 }, 'Hash.push without array creation is OK';
dies_ok { %h.push: 1 => 3 }, 'Hash.push key type check failure';
dies_ok { %h.push: 1.1 => 0.2 }, 'Hash.push value type check failure';
}
} #18

{
my %h{Any};
%h = 1, 2;
#?pugs todo
ok %h.keys[0] === 1, 'list assignment + object hashes';
}
} #1

{
my %h{Mu};
#?rakudo 6 skip 'oh noes, it dies'
%h{Mu} = 2;
ok %h{Mu} = 2, "just make the fudging work";
#?pugs todo
is %h{Mu}, 2, 'using Mu as a key';
%h{Any} = 3;
ok %h{Any} = 3, "just make the fudging work";
#?pugs todo
is %h{Any}, 3, 'using Any as a key';
#?pugs todo
is %h{ Mu, Any }.join(","), "2,3", 'check slice access on Mu';
#?pugs todo
is %h{*}.join(","), "2,3", 'check whatever access with Mu as key';
}
} #6

0 comments on commit f69337d

Please sign in to comment.