Commits

Shlomi Fish committed 02e5634

Convert t/08literal.t to Test::More.

  • Participants
  • Parent commits d68d455

Comments (0)

Files changed (2)

         - t/06output.t
         - t/06entities.t
         - t/07blankdoc.t
+        - t/08literal.t
 
 1.73            Sun Oct  9 17:32:30 IST 2011
     - Possible fix for https://rt.cpan.org/Ticket/Display.html?id=71456 :

File t/08literal.t

-use Test;
-BEGIN { plan tests => 5 }
+use strict;
+use warnings;
+
+# Should be 5.
+use Test::More tests => 5;
 use XML::LibXSLT;
 
 my $parser = XML::LibXML->new();
 my $xslt = XML::LibXSLT->new();
-ok($parser); ok($xslt);
+# TEST
+ok ($parser, '$parser was initted.');
+# TEST
+ok ($xslt, '$xslt was initted.');
 
 my $source = $parser->parse_string(<<'EOT');
 <?xml version="1.0" encoding="ISO-8859-1"?>
 </html>
 EOT
 
-ok($style);
+# TEST
+ok ($style, '$style is true.');
 my $stylesheet = $xslt->parse_stylesheet($style);
 
 my $results = $stylesheet->transform($source);
-ok($results);
+# TEST
+ok ($results, '$results are true.');
 
-ok($stylesheet->media_type, 'text/html');
+# TEST
+is ($stylesheet->media_type, 'text/html', 'media_type is text/html');