Permalink
Browse files

[t] Parrot_PMC_modulus_float

  • Loading branch information...
1 parent 7289594 commit 272276636ae841665374215bc5f0216b2506a9f4 @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_float" );
+ Parrot_PMC_set_number_native(interp, pmc, 50.0);
+ Parrot_PMC_set_number_native(interp, pmc3, 0.0);
+
+ pmc3 = Parrot_PMC_modulus_float(interp, pmc, 42.0, pmc3);
+ Parrot_printf(interp, "%P\n%P\n",pmc, pmc3);
+CODE
+50
+8
+Done!
+OUTPUT
+
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);

0 comments on commit 2722766

Please sign in to comment.