Skip to content

Commit

Permalink
Fudge for niecza.
Browse files Browse the repository at this point in the history
  • Loading branch information
colomon committed Jan 11, 2012
1 parent 3e8f57b commit 0f9c6e3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions S06-currying/mixed.t
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,20 @@ is((&foo.assuming(x => 1))(2), foo(1, 2), "same thing, but the other way around"

is((&foo.assuming(:x(1)))(2), foo(1, 2), "curried sub, use colon style");

#?niecza skip 'Multi colonpair syntax not yet understood'
is((&foo.assuming(:x(1) :y(2)))(), foo(1, 2), "same thing, but more colon");

#?niecza skip 'Unable to resolve method assuming:x<XXX> in class Sub'
is((&foo.assuming:x(1))(2), foo(1, 2), "curried sub, another colon style");

#?niecza skip 'Unable to resolve method assuming:x<XXX> in class Sub'
is((&foo.assuming:x(1):y(2))(), foo(1, 2), "same thing, but more pre colon");

#?niecza todo
ok(!(try { &foo.assuming(f => 3) }), "can't curry nonexistent named param");

# L<S06/Currying/The result of a use statement>
#?niecza todo
eval_lives_ok q'
(use t::packages::Test) // {}).assuming(arg1 => "foo");
die "not working" unless
Expand Down

0 comments on commit 0f9c6e3

Please sign in to comment.