head 1.1; branch 1.1.1; access ; symbols ePerl_2_2_14:1.1.1.1 RSE:1.1.1; locks ; strict; comment @# @; 1.1 date 99.05.02.14.43.40; author rse; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 99.05.02.14.43.40; author rse; state Exp; branches ; next ; desc @@ 1.1 log @Initial revision @ text @ require "TEST.pl"; &TEST::init; print "1..2\n"; # # TEST 1: total empty file # $tmpfile1 = &TEST::tmpfile(""); $tmpfile2 = &TEST::tmpfile; &TEST::system("../eperl $tmpfile1 >$tmpfile2"); $rc = &TEST::system("cmp $tmpfile1 $tmpfile2"); print ($rc == 0 ? "ok\n" : "not ok\n"); # # TEST 2: file with empty Perl 5 block # $tmpfile1 = &TEST::tmpfile(<<'EOT' foo bar baz quux foo<::>barbaz<: :>quux foo bar baz quux EOT ); $tmpfile2 = &TEST::tmpfile; $tmpfile3 = &TEST::tmpfile(<<'EOT' foo bar baz quux foobarbazquux foo bar baz quux EOT ); &TEST::system("../eperl -B '<:' -E ':>' $tmpfile1 >$tmpfile2"); $rc = &TEST::system("cmp $tmpfile2 $tmpfile3"); print ($rc == 0 ? "ok\n" : "not ok\n"); &TEST::cleanup; @ 1.1.1.1 log @Import of ePerl 2.2.14 @ text @@