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

dukeleto at svn.parrot.org dukeleto at svn.parrot.org
Sun Sep 6 18:58:39 UTC 2009


Author: dukeleto
Date: Sun Sep  6 18:58:37 2009
New Revision: 41076
URL: https://trac.parrot.org/parrot/changeset/41076

Log:
[t] Add basic test to make sure that like() passes when matching literal strings

Modified:
   trunk/t/library/test_more.t

Modified: trunk/t/library/test_more.t
==============================================================================
--- trunk/t/library/test_more.t	Sun Sep  6 18:47:58 2009	(r41075)
+++ trunk/t/library/test_more.t	Sun Sep  6 18:58:37 2009	(r41076)
@@ -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( 78 )
+    plan( 79 )
 
     test_skip()
     test_todo()
@@ -305,6 +305,10 @@
     test_diag( 'match failed' )
     like( 'abcdef', '<[g]>', 'testing like()' )
     test_test( 'failing test like() with description' )
+
+    test_pass( 'like() can match literal strings' )
+    like( 'foobar', 'foobar', 'like() can match literal strings' )
+    test_test( 'like() can match literal strings' )
 .end
 
 .sub test_is_deeply


More information about the parrot-commits mailing list