SYN SYN
[p5sagit/p5-mst-13.2.git] / t / lib / cgi-pretty.t
index e217a7d..14f6447 100755 (executable)
@@ -1,12 +1,14 @@
-#!./perl
+#!/usr/local/bin/perl -w
 
-# Test ability to retrieve HTTP request info
-######################### We start with some black magic to print on failure.
 BEGIN {
-    chdir 't' if -d 't';
-    unshift @INC, '../lib' if -d '../lib';
+    chdir('t') if -d 't';
+    @INC = '../lib';
 }
 
+# Test ability to retrieve HTTP request info
+######################### We start with some black magic to print on failure.
+use lib '../blib/lib','../blib/arch';
+
 BEGIN {$| = 1; print "1..5\n"; }
 END {print "not ok 1\n" unless $loaded;}
 use CGI::Pretty (':standard','-no_debug','*h3','start_table');
@@ -23,17 +25,17 @@ sub test {
 }
 
 # all the automatic tags
-test(2,h1() eq '<H1>',"single tag");
-test(3,ol(li('fred'),li('ethel')) eq "<OL>\n\t<LI>\n\t\tfred\n\t</LI>\n\t <LI>\n\t\tethel\n\t</LI>\n</OL>\n","basic indentation");
+test(2,h1() eq '<h1>',"single tag");
+test(3,ol(li('fred'),li('ethel')) eq "<ol>\n\t<li>\n\t\tfred\n\t</li>\n\t <li>\n\t\tethel\n\t</li>\n</ol>\n","basic indentation");
 test(4,p('hi',pre('there'),'frog') eq 
-'<P>
-       hi <PRE>there</PRE>
+'<p>
+       hi <pre>there</pre>
         frog
-</P>
+</p>
 ',"<pre> tags");
 test(5,p('hi',a({-href=>'frog'},'there'),'frog') eq 
-'<P>
-       hi <A HREF="frog">there</A>
+'<p>
+       hi <a href="frog">there</a>
         frog
-</P>
+</p>
 ',"as-is");