/home/.cpan/build/IO-Stringy-2.113-0/t
NameSizeModeActions
00-report-prereqs.dd32480644editdlrm
00-report-prereqs.t59100644editdlrm
IO_InnerFile.t18920644editdlrm
IO_Lines.t38950644editdlrm
IO_Scalar.t44280644editdlrm
IO_ScalarArray.t38410644editdlrm
IO_WrapTie.t7180644editdlrm
simple.t9710644editdlrm
two.t5800644editdlrm
Edit: /home/.cpan/build/IO-Stringy-2.113-0/t/simple.t (971B)
use strict; use warnings; use IO::Scalar; use IO::ScalarArray; use IO::Lines; use Test::More tests => 6; my $SH = IO::Scalar->new(); print $SH "Hi there!\n"; print $SH "Tres cool, no?\n"; is(${$SH->sref}, "Hi there!\nTres cool, no?\n", 'sref: Got the correct string'); $SH->seek(0, 0); my $line = <$SH>; is($line, "Hi there!\n", 'readline: got the right first line'); my $AH = IO::ScalarArray->new; print $AH "Hi there!\n"; print $AH "Tres cool, no?\n"; is(join('', @{$AH->aref}), "Hi there!\nTres cool, no?\n", 'array aref: got the right contents'); $AH->seek(0, 0); $line = <$AH>; is($line, "Hi there!\n", 'array readline: got the right first line'); #------------------------------ my $LH = IO::Lines->new; print $LH "Hi there!\n"; print $LH "Tres cool, no?\n"; is(join('', @{$LH->aref}), "Hi there!\nTres cool, no?\n", 'lines aref: got the right content'); $LH->seek(0, 0); $line = <$LH>; is($line, "Hi there!\n", 'lines readline: got the right first line');