Permalink
Browse files

[t] Parrot_PMC_i_modulus_float

  • Loading branch information...
1 parent 2722766 commit 334b8d1f30a3345782fa9ab42651b1685501393c @leto leto committed May 27, 2011
Showing with 10 additions and 0 deletions.
  1. +10 −0 t/src/extend_vtable.t
View
@@ -158,6 +158,16 @@ CODE
# actual tests start here
+extend_vtable_output_is(<<'CODE',<<'OUTPUT', "Parrot_PMC_i_modulus_float" );
+ Parrot_PMC_set_number_native(interp, pmc, 50.0);
+
+ Parrot_PMC_i_modulus_float(interp, pmc, 42.0);
+ Parrot_printf(interp, "%.2f\n",Parrot_PMC_get_number(interp, pmc));
+CODE
+8.00
+Done!
+OUTPUT
+
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);

0 comments on commit 334b8d1

Please sign in to comment.