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
@
BEGIN { $| = 1; print "1..3\n"; }
use Parse::ePerl;
$in = <<'EOT';
foo
print "bar";
quux
EOT
$test = <<'EOT';
foo
bar
quux
EOT
$rc = Parse::ePerl::Expand({
Script => $in,
Result => \$out,
BeginDelimiter => "",
EndDelimiter => ""
});
if ($rc == 1 and $out eq $test) {
print "ok 1\n";
}
else {
print "not ok 1\n";
}
$rc = Parse::ePerl::Expand({
Script => $in,
Result => \$out,
BeginDelimiter => "",
EndDelimiter => "",
CaseDelimiters => 0
});
if ($rc == 1 and $out eq $test) {
print "ok 2\n";
}
else {
print "not ok 2\n";
}
$rc = Parse::ePerl::Expand({
Script => $in,
Result => \$out,
BeginDelimiter => "",
EndDelimiter => "",
CaseDelimiters => 1
});
if ($rc == 1 and $out ne $test) {
print "ok 3\n";
}
else {
print "not ok 3\n";
}
@
1.1.1.1
log
@Import of ePerl 2.2.14
@
text
@@