X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=t%2Fcgi_maypole.t;h=22a50b37046f09d9744caa8bc56c93a613175bbd;hb=a542064c7699bbb4773d878d9a161f02542b9fbc;hp=e1798667303f12b20eabf887b729664b13317547;hpb=571aaf65ca821e17427d84089de50f4d66db81cf;p=maypole.git diff --git a/t/cgi_maypole.t b/t/cgi_maypole.t index e179866..22a50b3 100644 --- a/t/cgi_maypole.t +++ b/t/cgi_maypole.t @@ -108,11 +108,13 @@ SKIP: { }; diag $@ if $@; - $compare = join "\cM\cJ", 'Content-length: 12', - 'X-bender: kiss my shiny metal ass', + my $CL = 'Content-length: 12'; + my $XB = 'X-bender: kiss my shiny metal ass'; + my $nl = "\cM\cJ"; + my $re = join $nl, "($CL$nl$XB)|($XB$nl$CL)", 'Content-Type: text/plain; charset=iso8859-1', '', 'Hello World!'; - is($stdout, $compare, '... prints output, including custom headers'); + like($stdout, qr/$re/, '... prints output, including custom headers'); } # get_template_root()