blob: 5eca920578f30d30a0c604781478c2e62356a651 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/usr/bin/perl
use test::helper qw($_real $_point);
use Test::More;
plan tests => 3;
chdir($_real);
system("echo frog >file");
chdir($_point);
ok(open(FILE,"file"),"open");
my ($data) = <FILE>;
close(FILE);
is(length($data),5,"right amount read");
is($data,"frog\n","right data read");
unlink("file");
|