File: larna.t

package info (click to toggle)
libmethod-signatures-perl 20120523-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 468 kB
  • sloc: perl: 2,060; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 316 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

use strict;
use warnings;

use Test::More;

use Method::Signatures;


ok eval q{ my $a = [ func () {}, 1 ]; 1 }, 'anonymous function in list is okay'
        or diag "eval error: $@";

ok eval q{ my $a = [ method () {}, 1 ]; 1 }, 'anonymous method in list is okay'
        or diag "eval error: $@";


done_testing;