Commits

shl...@52c325ad-5fd0-0310-8a0f-c43feede02cc  committed 5cd65df

Provided a workaround for the tests to pass with recent LibXSLT.

For t/01generate.t.

  • Participants
  • Parent commits d9a3452

Comments (0)

Files changed (2)

 Revision history for XML::CompareML
 
+    - Provided a workaround for testing the code on recent (and older)
+    versions of XML-LibXSLT.
+
 0.2.5    Fri Jul 17 17:04:12 IDT 2009
     - Added XML::LibXSLT to the dependencies.
     - Converted Build.PL to use XML::Grammar::Builder.

File t/01generate.t

     ok(length($buffer) > 0, "\$buffer was filled in");
 }
 
+sub normalize_space
+{
+    my $text_ref = shift;
+
+    ${$text_ref} =~ s{^[ \t]*}{}gms;
+
+    return;
+}
+
 # Check for actual content.
 {
     my $buffer = "";
         $good_content = <$good_html_fh>;
     }
     close($good_html_fh);
+
+    normalize_space(\$buffer);
+    normalize_space(\$good_content);
+
     # TEST
     eq_or_diff ($buffer, $good_content, "XSLT Works");
 }