File: syntax.t

package info (click to toggle)
libsyntax-keyword-junction-perl 0.003009-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 260 kB
  • sloc: perl: 869; makefile: 7
file content (20 lines) | stat: -rw-r--r-- 359 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use strict;
use warnings;

use Test::More;
use Test::Needs {
  'Sub::Exporter' => 0.986,
  'syntax'        => 0,
};

use syntax junction => {
  -all => { -prefix => 'syntax_' }
};

use Syntax::Keyword::Junction -all => { -prefix => 'orig_' };

ok orig_any(1,2,3) == 2, 'regular export works';
ok syntax_any(1,2,3) == 2, 'syntax export works';

done_testing;