From: Peter Prymmer Date: Mon, 30 Oct 2000 17:48:11 +0000 (-0800) Subject: fix coded control chars in cgi-html.t X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ed8c81f50f5531327b9937724f97d269575a0542;p=p5sagit%2Fp5-mst-13.2.git fix coded control chars in cgi-html.t Message-ID: p4raw-id: //depot/perl@7497 --- diff --git a/t/lib/cgi-html.t b/t/lib/cgi-html.t index 50c8408..3d3da10 100755 --- a/t/lib/cgi-html.t +++ b/t/lib/cgi-html.t @@ -82,7 +82,12 @@ test(19,end_h3 eq ''); test(20,start_table({-border=>undef}) eq ''); test(21,h1(escapeHTML("this is \x8bright\x9b")) eq '

this is <not> ‹right›

'); charset('utf-8'); +if (ord("\t") == 9) { test(22,h1(escapeHTML("this is \x8bright\x9b")) eq '

this is <not> ‹right›

'); +} +else { +test(22,h1(escapeHTML("this is \x8bright\x9b")) eq '

this is <not> »rightº

'); +} test(23,i(p('hello there')) eq '

hello there

'); my $q = new CGI; test(24,$q->h1('hi') eq '

hi

');