Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[t] Parrot_PMC_modulus_int

  • Loading branch information...
commit 72895945c7b7e979b658dd4d8074f539a6b84120 1 parent b2db6d4
@leto leto authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 t/src/extend_vtable.t
View
12 t/src/extend_vtable.t
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.