[svn:parrot] r48761 - trunk/t/pmc

NotFound at svn.parrot.org NotFound at svn.parrot.org
Thu Sep 2 08:25:56 UTC 2010


Author: NotFound
Date: Thu Sep  2 08:25:56 2010
New Revision: 48761
URL: https://trac.parrot.org/parrot/changeset/48761

Log:
one more StringIterator test to reach 100% coverage

Modified:
   trunk/t/pmc/stringiterator.t

Modified: trunk/t/pmc/stringiterator.t
==============================================================================
--- trunk/t/pmc/stringiterator.t	Thu Sep  2 07:38:30 2010	(r48760)
+++ trunk/t/pmc/stringiterator.t	Thu Sep  2 08:25:56 2010	(r48761)
@@ -22,7 +22,7 @@
 .sub main :main
     .include 'test_more.pir'
 
-    plan(29)
+    plan(30)
 
     test_get_pmc()
     test_clone()
@@ -230,7 +230,9 @@
     s = 'hi'
     it = iter s
     s1 = it[0]
-    is(s1, 'h', 'get_string_keyed_int')
+    is(s1, 'h', 'get_string_keyed_int - zero')
+    s1 = it[1]
+    is(s1, 'i', 'get_string_keyed_int - not zero')
 
     eh = new ['ExceptionHandler']
     eh.'handle_types'(.EXCEPTION_OUT_OF_BOUNDS)


More information about the parrot-commits mailing list