Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tests for RT #78748
  • Loading branch information
moritz committed Oct 2, 2011
1 parent c47bf35 commit d7a95cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion S12-subset/subtypes.t
Expand Up @@ -214,12 +214,15 @@ ok "x" !~~ NW1, 'subset declaration without where clause rejects wrong value';
is $*call2, 1, 'level two subset checked (should succeed)';
}

# RT #75718
{
role R { };
subset S of R;
# RT #75718
nok 1 ~~ S, 'subsets of roles (1)';
ok R ~~ S, 'subsets of roles (2)';

ok (R ~~ S) ~~ Bool, 'smart-matching a subset returns a Bool (1)';
ok (S ~~ R) ~~ Bool, 'smart-matching a subset returns a Bool (2)';
}

done;
Expand Down

0 comments on commit d7a95cb

Please sign in to comment.