Commits

Shlomi Fish committed b5efe2b

Convert t/15misc.t to Test::More.

Comments (0)

Files changed (2)

         - t/12import.t
         - t/13error.t
         - t/14security.t
+        - t/15misc.t
 
     - In the process made "Encode" and perl-5.8.1. pre-requisites of this
     distribution.
 # -*- cperl -*-
 
-use Test;
-BEGIN { plan tests => 4 }
+use strict;
+use warnings;
+
+# Should be 4.
+use Test::More tests => 4;
+
 use XML::LibXML 1.70;
 use XML::LibXSLT;
 
 </xsl:transform>
 EOX
 
-  ok($doc->toString() eq $xml);
+  # TEST
+  is ($doc->toString(), $xml, 'toString() No. 1');
   $xslt->parse_stylesheet($style_doc)->transform($doc);
-  ok($doc->toString() eq $xml);
+  # TEST
+  is ($doc->toString(), $xml, 'toString() No. 2');
 
 }
 
   my $stylesheet = $xslt->parse_stylesheet($style_doc);
 
   my $results = $stylesheet->transform($source);
-  ok($results);
+  # TEST
+  ok($results, ' TODO : Add test name');
   my $out = $stylesheet->output_string($results);
-  ok($out eq <<'EOF') or print $out;
+  # TEST
+  is($out, <<'EOF', '$out is equal to <tr>');
 <?xml version="1.0"?>
 <tr>
 EOF