/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/IO_WrapTie.t (718B)
use strict; use warnings; use IO::Handle; use IO::Scalar; use IO::WrapTie; use Test::More tests => 5; my $hello = 'Hello, '; my $world = "world!\n"; #### test my $s = ''; my $SH = IO::WrapTie->new('IO::Scalar', \$s); isa_ok($SH, 'IO::WrapTie::Master', 'new: got the object'); #### test print {$SH} $hello, $world; is($s, "$hello$world", 'print {FH} ARGS: tied string is correct'); #### test $SH->print($hello, $world); is($s, "$hello$world$hello$world", 'FH->print(ARGS): tied string is correct'); #### test $SH->seek(0,0); #### test my @x = <$SH>; ok( (($x[0] eq "$hello$world") && ($x[1] eq "$hello$world") && !$x[2]), "array = " ); #### test my $sref = $SH->sref; ok($sref eq \$s, "FH->sref");