projects
/
scpubgit/HTML-String.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
10c4bc6
)
Add a failing test for concatenating false strings
Florian Ragwitz [Thu, 12 Sep 2013 13:00:17 +0000 (09:00 -0400)]
t/simple.t
patch
|
blob
|
blame
|
history
diff --git
a/t/simple.t
b/t/simple.t
index
dd0d059
..
cb788ab
100644
(file)
--- 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;