File: one.t

package info (click to toggle)
libtie-cycle-perl 1.21-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 112 kB
  • ctags: 13
  • sloc: perl: 51; makefile: 2
file content (13 lines) | stat: -rw-r--r-- 309 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
use Test::More 0.95;

use Tie::Cycle;

my @array = qw( A );

tie my $cycle, 'Tie::Cycle', \@array;

is( $cycle, $array[0], "Cycle is first element, iteration 1" );
is( $cycle, $array[0], "Cycle is first element, iteration 2" );
is( $cycle, $array[0], "Cycle is first element, iteration 3" );

done_testing();