File: scoped.t

package info (click to toggle)
liblist-maker-perl 0.005-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 188 kB
  • ctags: 11
  • sloc: perl: 225; makefile: 2
file content (16 lines) | stat: -rwxr-xr-x 398 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use Test::More 'no_plan';

is_deeply [<1..10>],  ['1..10']                => 'leading <1..10>';

{
    use List::Maker;
    is_deeply [<1..10>],  [1,2,3,4,5,6,7,8,9,10]   => 'scoped <1..10>';
}

if ($] < 5.010) {
    is_deeply [<1..10>],  [1,2,3,4,5,6,7,8,9,10]   => 'trailing file-scoped <1..10>';
}
else {
    is_deeply [<1..10>],  ['1..10']                => 'trailing block-scoped <1..10>';
}