File: closures.t

package info (click to toggle)
libglib-object-introspection-perl 0.009-1%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 376 kB
  • sloc: ansic: 2,361; perl: 716; makefile: 5
file content (11 lines) | stat: -rw-r--r-- 239 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env perl

BEGIN { require './t/inc/setup.pl' };

use strict;
use warnings;

plan tests => 3;

is (Regress::test_closure (sub { return 23; }), 23);
is (Regress::test_closure_one_arg (sub { is (shift, 42); return 23; }, 42), 23);