edited all .t tests to not use use_ok to load File::Slurp. they now all
[urisagit/File-Slurp.git] / t / stdin.t
1 #!/usr/local/bin/perl -w
2
3 use strict ;
4 use File::Slurp ;
5
6 use Carp ;
7 use Socket ;
8 use Symbol ;
9 use Test::More tests => 6 ;
10
11 my $data = <<TEXT ;
12 line 1
13 more text
14 TEXT
15
16 foreach my $file ( qw( stdin STDIN stdout STDOUT stderr STDERR ) ) {
17
18         write_file( $file, $data ) ;
19         my $read_buf = read_file( $file ) ;
20         is( $read_buf, $data, 'read/write of file [$file]' ) ;
21
22         unlink $file ;
23 }