File: 11func.t

package info (click to toggle)
libsyntax-operator-in-perl 0.10-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 160 kB
  • sloc: perl: 201; makefile: 3
file content (24 lines) | stat: -rw-r--r-- 396 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/perl

use v5.14;
use warnings;

use Test2::V0;

use Syntax::Operator::Elem qw( elem_str elem_num );

# stringy
{
   ok( elem_str("c", "a".."e"), 'c is in a..e');
   ok(!elem_str("f", "a".."e"), 'f is not in a..e');
}

# numbery
{
   ok( elem_num(3, 1..5), '3 is in 1..5');
   ok(!elem_num(6, 1..5), '6 is not in 1..5');
}

# TODO unimport test makes the-above test fail

done_testing;