File: gorn.t

package info (click to toggle)
libfunction-parameters-perl 2.002005-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 624 kB
  • sloc: perl: 3,945; makefile: 3
file content (13 lines) | stat: -rw-r--r-- 311 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!perl
use strict;
use warnings FATAL => 'all';

use Test::More tests => 4;

use Function::Parameters;

is eval 'fun {}', undef;
like $@, qr/\A\QIn fun (anon): I was expecting a parameter list, not "{"/;

is eval 'fun () :() {}', undef;
like $@, qr/\A\QIn fun (anon): I was expecting a function body, not "("/;