[svn:parrot] r41542 - trunk/t/library

dukeleto at svn.parrot.org dukeleto at svn.parrot.org
Mon Sep 28 08:39:30 UTC 2009


Author: dukeleto
Date: Mon Sep 28 08:39:28 2009
New Revision: 41542
URL: https://trac.parrot.org/parrot/changeset/41542

Log:
[t] Add another test for is_deeply() on hashes with undefs

Modified:
   trunk/t/library/test_more.t

Modified: trunk/t/library/test_more.t
==============================================================================
--- trunk/t/library/test_more.t	Mon Sep 28 08:30:18 2009	(r41541)
+++ trunk/t/library/test_more.t	Mon Sep 28 08:39:28 2009	(r41542)
@@ -22,7 +22,7 @@
     exports = split " ", "plan test_out test_diag test_fail test_pass test_test"
     test_namespace.'export_to'(curr_namespace, exports)
 
-    plan( 93 )
+    plan( 94 )
 
     test_skip()
     test_todo()
@@ -529,6 +529,11 @@
     test_diag( 'Mismatch: expected 3 elements, received 2')
     test_test( 'failing is_deeply() for hashes differing by keys with undef values' )
 
+    right['bar'] = undef1
+    test_fail()
+    is_deeply( left, right )
+    test_diag( 'Mismatch at [foo]: expected (undef), received nonexistent')
+    test_test( 'failing is_deeply() for hashes differing by keys with undef values' )
 .end
 
 .sub test_is_deeply_mismatch


More information about the parrot-commits mailing list