1 #!/usr/bin/perl -w #-*-Perl-*-
3 use lib "./t", "./lib";
15 my $RECORDSEP_TESTS = 'undef newline';
16 sub opener { my $a = [@{$_[0]}]; IO::Lines->new($a); }
19 my $T = typical ExtUtils::TBone;
20 Common->test_init(TBone=>$T);
24 my $common_tests = (1 + 1 + 4 + 4 + 3 + 4
25 + Common->test_recordsep_count($RECORDSEP_TESTS));
26 $T->begin($main_tests + $common_tests);
28 # Open a scalar on a string, containing initial data:
29 my @la = @Common::DATA_LA;
30 my $LAH = IO::Lines->new(\@la);
31 $T->ok($LAH, "OPEN: open a scalar on a ref to an array");
34 Common->test_print($LAH);
35 Common->test_getc($LAH);
36 Common->test_getline($LAH);
37 Common->test_read($LAH);
38 Common->test_seek($LAH);
39 Common->test_tie(TieArgs => ['IO::Lines', []]);
40 Common->test_recordsep($RECORDSEP_TESTS, \&opener);
42 # So we know everything went well...