Permalink
Browse files

add latin-1 test

  • Loading branch information...
1 parent 079c425 commit ddf996e6a9ca1d10f0932e372c87ce2ccfe69313 @ronaldxs ronaldxs committed Aug 12, 2012
Showing with 17 additions and 0 deletions.
  1. +17 −0 t/get-w3-latin1.t
View
@@ -0,0 +1,17 @@
+use v6;
+use Test;
+
+use LWP::Simple;
+
+my $html = LWP::Simple.get('http://www.w3.org/2006/11/mwbp-tests/test-encoding-8.html');
+
+my $find_char = Buf.new(0xE9).decode('latin-1');
+ok(
+ $html.match('</html>') && $html.match($find_char),
+ 'Got latin-1 page'
+);
+
+#diag("Content\n" ~ $html);
+
+done;
+

0 comments on commit ddf996e

Please sign in to comment.