Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Tests for not auto-threading Junction type object.
It should just be a regular dispatch fail.
  • Loading branch information
jnthn committed Jun 6, 2015
1 parent f4fb60e commit 140767b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion S03-junctions/misc.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 129;
plan 131;

=begin pod
Expand Down Expand Up @@ -462,4 +462,9 @@ nok ((4,5,6),(4,5,6,7)).none == 3, '.none is not flattening 1';
ok (<a b c>,(4,5,6)).none eq 'a' , '.none is not flattening 2';
is ((<a b c>,(4,5,6)).none eq 'a b c').gist, 'none(True, False)', '.none is not flattening 3';

throws-like 'multi sub foo($) { }; foo(Junction)', X::Multi::NoMatch,
'Do not try to auto-thread Junction type object (multi case)';
throws-like 'sub foo($) { }; foo(Junction)', X::TypeCheck::Binding,
'Do not try to auto-thread Junction type object (only case)';

# vim: ft=perl6

0 comments on commit 140767b

Please sign in to comment.