X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcomp%2Four.t;h=d271fe517c90680412406a551cfe8f82dffcb04e;hb=1183a10042af0734ee65e252f15bd820b7bbe686;hp=69fbb03121bf0fbd658b59e10ab608b50ab2f9d5;hpb=8716503d4f67eab8980805177dcbdf2c897aa42e;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/comp/our.t b/t/comp/our.t index 69fbb03..d271fe5 100644 --- a/t/comp/our.t +++ b/t/comp/our.t @@ -1,12 +1,27 @@ #!./perl -BEGIN { - chdir 't'; - @INC = '../lib'; - require './test.pl'; -} - print "1..7\n"; +my $test = 0; + +sub is { + my ($got, $expect, $name) = @_; + $test = $test + 1; + if (defined $got && $got eq $expect) { + print "ok $test - $name\n"; + return 1; + } + + print "not ok $test - $name\n"; + my @caller = caller(0); + print "# Failed test at $caller[1] line $caller[2]\n"; + if (defined $got) { + print "# Got '$got'\n"; + } else { + print "# Got undef\n"; + } + print "# Expected $expect\n"; + return; +} { package TieAll;