[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

[PATCH] add undef tests to t/op/smartmatch.t



---
 t/op/smartmatch.t |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/t/op/smartmatch.t b/t/op/smartmatch.t
index ed41aaa..79b6b9b 100644
--- a/t/op/smartmatch.t
+++ b/t/op/smartmatch.t
@@ -177,3 +177,18 @@ __DATA__
 	@nums		{  1, '',  2, '' }
 	@nums		{  1, '', 12, '' }
 !	@nums		{ 11, '', 12, '' }
+
+# UNDEF
+!	3		undef
+!	1		undef
+!	[]		undef
+!	{}		undef
+!	\%::main	undef
+!	[1,2]		undef
+!	%hash		undef
+!	@nums		undef
+!	"foo"		undef
+!	""		undef
+!	!1		undef
+!	\&foo		undef
+!	sub { }		undef
-- 
1.5.6.1.dirty


Follow-Ups from:
Yuval Kogman <nothingmuch@woobling.org>
References to:
"Rafael Garcia-Suarez" <rgarciasuarez@gmail.com>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]