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

dukeleto at svn.parrot.org dukeleto at svn.parrot.org
Mon Sep 7 04:52:53 UTC 2009


Author: dukeleto
Date: Mon Sep  7 04:52:48 2009
New Revision: 41092
URL: https://trac.parrot.org/parrot/changeset/41092

Log:
[t] Add test for dealing with spaces in like()

Modified:
   trunk/t/library/test_more.t

Modified: trunk/t/library/test_more.t
==============================================================================
--- trunk/t/library/test_more.t	Mon Sep  7 04:31:21 2009	(r41091)
+++ trunk/t/library/test_more.t	Mon Sep  7 04:52:48 2009	(r41092)
@@ -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( 80 )
+    plan( 81 )
 
     test_skip()
     test_todo()
@@ -314,6 +314,10 @@
     test_pass( 'like() can match partial literal strings' )
     like( 'foobar()', 'foobar', 'like() can match partial literal strings' )
     test_test( 'like() can match partial literal strings' )
+
+    test_pass( 'like() can match partial literal strings with spaces' )
+    like( 'foo bar()', 'foo\ bar', 'like() can match partial literal strings with spaces' )
+    test_test( 'like() can match partial literal strings with spaces' )
 .end
 
 .sub test_is_deeply


More information about the parrot-commits mailing list