Permalink
Browse files

[t] Parrot_PMC_modulus_int

  • Loading branch information...
1 parent b2db6d4 commit 72895945c7b7e979b658dd4d8074f539a6b84120 @leto leto committed May 27, 2011
Showing with 12 additions and 0 deletions.
  1. +12 −0 t/src/extend_vtable.t
View
@@ -158,6 +158,18 @@ CODE
# actual tests start here
+extend_vtable_output_is(<<'CODE',<<'OUTPUT', "Parrot_PMC_modulus_int" );
+ Parrot_PMC_set_integer_native(interp, pmc, 50);
+ Parrot_PMC_set_integer_native(interp, pmc3, 0);
+
+ pmc3 = Parrot_PMC_modulus_int(interp, pmc, 42, pmc3);
+ Parrot_printf(interp, "%P\n%P\n",pmc, pmc3);
+CODE
+50
+8
+Done!
+OUTPUT
+
extend_vtable_output_is(<<'CODE', <<'OUTPUT', "Parrot_PMC_i_floor_divide_int" );
Parrot_PMC_set_integer_native(interp, pmc, 7);
Parrot_PMC_set_integer_native(interp, pmc2, 3);

0 comments on commit 7289594

Please sign in to comment.