my $bas_tests = 20;
# number of tests in section 3
-my $hmb_tests = 37;
+my $hmb_tests = 39;
printf "1..%d\n", $bas_tests + $num_tests + $hmb_tests;
use strict; # Amazed that this hackery can be made strict ...
+# DAPM. Exercise a couple of error codepaths
+
+{
+ local $~ = '';
+ eval { write };
+ print "not " unless $@ and $@ =~ /Not a format reference/;
+ print "ok $test - Not a format reference\n";
+ $test++;
+
+ $~ = "NOSUCHFORMAT";
+ eval { write };
+ print "not " unless $@ and $@ =~ /Undefined format/;
+ print "ok $test - Undefined format\n";
+ $test++;
+}
+
# Just a complete test for format, including top-, left- and bottom marging
# and format detection through glob entries