Skip to content
Browse files

Merge pull request #5 from laben/master

Adjust tests to newer conventions
  • Loading branch information...
2 parents 7452ca1 + 90a5fc0 commit c230464a2cd5ed1c19fcba9acd496d72d227fd1f @moritz moritz committed
Showing with 2 additions and 4 deletions.
  1. +1 −2 t/escaping.t
  2. +1 −2 t/structure.t
View
3 t/escaping.t
@@ -2,7 +2,7 @@ use v6;
use XML::Writer;
use Test;
-plan *;
+plan 3;
ok XML::Writer.serialize('a' => [ :b<c>, '<foo>' ]) !~~ / '<foo>' /,
'plain text is escaped (<>)';
given XML::Writer.serialize('a' => [ :b<c>, '&' ]) {
@@ -13,4 +13,3 @@ given XML::Writer.serialize('a' => [ :b<c>, '&' ]) {
ok XML::Writer.serialize('a' => [ :b<c>, 'a"b' ]) !~~ / 'a"b' /,
'plain text is escaped (")';
-done;
View
3 t/structure.t
@@ -1,5 +1,5 @@
use Test;
-plan *;
+plan 8;
use XML::Writer;
@@ -26,5 +26,4 @@ my $xml = :longidentifier[
ok XML::Writer.serialize($xml).match(rx/\n/, :x(5)),
'Long XML is occasionally line-wrapped';
-done;
# vim: ft=perl6

0 comments on commit c230464

Please sign in to comment.
Something went wrong with that request. Please try again.