From: Florian Ragwitz Date: Thu, 12 Sep 2013 13:00:17 +0000 (-0400) Subject: Add a failing test for concatenating false strings X-Git-Tag: v1.000003~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=cb4648faa05f2f7c12e0b8acf04b0de8d62d8a3b;p=scpubgit%2FHTML-String.git Add a failing test for concatenating false strings --- diff --git a/t/simple.t b/t/simple.t index dd0d059..cb788ab 100644 --- a/t/simple.t +++ b/t/simple.t @@ -58,4 +58,9 @@ ok(HTML::String::Value->isa('HTML::String::Value'), 'isa on class ok'); is($@, '', '$@ not set by check'); +is do { + use HTML::String::Overload; + '' . '0' +}, '0', 'concatenating strings which are false in boolean context'; + done_testing;