[svn:parrot] r41620 - branches/pcc_reapply/t/pmc

whiteknight at svn.parrot.org whiteknight at svn.parrot.org
Fri Oct 2 22:20:22 UTC 2009


Author: whiteknight
Date: Fri Oct  2 22:20:19 2009
New Revision: 41620
URL: https://trac.parrot.org/parrot/changeset/41620

Log:
[pcc] fix some tests in fixedbooleanarray.t that were using 'like' ('like' requires PCT which is not built for coretest)

Modified:
   branches/pcc_reapply/t/pmc/fixedbooleanarray.t

Modified: branches/pcc_reapply/t/pmc/fixedbooleanarray.t
==============================================================================
--- branches/pcc_reapply/t/pmc/fixedbooleanarray.t	Fri Oct  2 16:53:41 2009	(r41619)
+++ branches/pcc_reapply/t/pmc/fixedbooleanarray.t	Fri Oct  2 22:20:19 2009	(r41620)
@@ -62,9 +62,8 @@
     .return()
 
   resizing_not_allowed_handler:
-    .get_results($P0)
-    $S0 = $P0
-    like($S0, ":s FixedBooleanArray\\: Can\\'t resize\\!", 'Resetting array size (and getting an exception)')
+    pop_eh
+    ok(1, 'resizing does not work on a fixed-size array')
 .end
 
 .sub 'setting_first_element'
@@ -112,9 +111,8 @@
     .return()
 
   setting_out_of_bounds_handler:
-    .get_results($P0)
-    $S0 = $P0
-    like($S0, ":s FixedBooleanArray\\: index out of bounds\\!", "Setting out-of-bounds elements")
+    pop_eh
+    ok(1, "Setting out-of-bounds element did not succeed")
 .end
 
 .sub 'getting_out_of_bounds'
@@ -128,9 +126,8 @@
     .return()
 
   getting_out_of_bounds_handler:
-    .get_results($P0)
-    $S0 = $P0
-    like($S0, ":s FixedBooleanArray\\: index out of bounds\\!", "Getting out-of-bounds elements")
+    pop_eh
+    ok(1, "Getting out-of-bounds element does not succeed")
 .end
 
 .sub 'set_pmc_access_int'


More information about the parrot-commits mailing list