1 #!/usr/bin/perl -w #-*-Perl-*-
3 use lib "./t", "./lib";
18 my $T = typical ExtUtils::TBone;
19 Common->test_init(TBone=>$T);
26 #------------------------------
28 my $SH = new IO::Scalar;
29 print $SH "Hi there!\n";
30 print $SH "Tres cool, no?\n";
31 $T->ok_eq(${$SH->sref}, "Hi there!\nTres cool, no?\n");
35 $T->ok_eq($line, "Hi there!\n");
37 #------------------------------
39 my $AH = new IO::ScalarArray;
40 print $AH "Hi there!\n";
41 print $AH "Tres cool, no?\n";
42 $T->ok_eq(join('', @{$AH->aref}), "Hi there!\nTres cool, no?\n");
46 $T->ok_eq($line, "Hi there!\n");
48 #------------------------------
50 my $LH = new IO::Lines;
51 print $LH "Hi there!\n";
52 print $LH "Tres cool, no?\n";
53 $T->ok_eq(join('', @{$LH->aref}), "Hi there!\nTres cool, no?\n");
57 $T->ok_eq($line, "Hi there!\n");
61 ### So we know everything went well...