From 8811161f67657253d11214ede54857f810662a91 Mon Sep 17 00:00:00 2001 From: Mark Glines Date: Mon, 22 Apr 2002 02:24:28 +0000 Subject: added a test framework updated README fixed a couple of bugs in loopback.pl --- perl/test/read.t | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 perl/test/read.t (limited to 'perl/test/read.t') diff --git a/perl/test/read.t b/perl/test/read.t new file mode 100644 index 0000000..5eca920 --- /dev/null +++ b/perl/test/read.t @@ -0,0 +1,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) = ; +close(FILE); +is(length($data),5,"right amount read"); +is($data,"frog\n","right data read"); +unlink("file"); -- cgit v1.2.3