[t/spec] Add tricky tests (which pass after latest Rakudo patch), unfudge old simple...
[pugs.git] / v6 / v6-KindaPerl6 / t / kp6 / 29-signature.t
blob173bccf4191412dcd27ee72a655a2e0302bf1840
1 my sub ab ($a,$b) {
2     if ($a == $b) {
3         say "ok";
4     } else {
5         say "not ok # "~$a~" != "~$b;;
6     }
7 };
9 say '1..2';
10 say 'ok 1';
12 say '# Signature: ', &ab.signature;
13 if (&ab.signature).arity == 2 {
14     say "ok 2 arity";
16 else {
17     say "not ok 2"
20 =begin
22 =head1 AUTHORS
24 The Pugs Team E<lt>perl6-compiler@perl.orgE<gt>.
26 =head1 SEE ALSO
28 The Perl 6 homepage at L<http://dev.perl.org/perl6>.
30 The Pugs homepage at L<http://pugscode.org/>.
32 =head1 COPYRIGHT
34 Copyright 2007 by Flavio Soibelmann Glock and others.
36 This program is free software; you can redistribute it and/or modify it
37 under the same terms as Perl itself.
39 See L<http://www.perl.com/perl/misc/Artistic.html>
41 =end