Skip to content
This repository
Browse code

[t] Parrot_PMC_i_modulus_float

  • Loading branch information...
commit 334b8d1f30a3345782fa9ab42651b1685501393c 1 parent 2722766
Duke Leto authored May 27, 2011

Showing 1 changed file with 10 additions and 0 deletions. Show diff stats Hide diff stats

  1. 10  t/src/extend_vtable.t
10  t/src/extend_vtable.t
@@ -158,6 +158,16 @@ CODE
158 158
 
159 159
 # actual tests start here
160 160
 
  161
+extend_vtable_output_is(<<'CODE',<<'OUTPUT', "Parrot_PMC_i_modulus_float" );
  162
+    Parrot_PMC_set_number_native(interp, pmc,  50.0);
  163
+
  164
+    Parrot_PMC_i_modulus_float(interp, pmc, 42.0);
  165
+    Parrot_printf(interp, "%.2f\n",Parrot_PMC_get_number(interp, pmc));
  166
+CODE
  167
+8.00
  168
+Done!
  169
+OUTPUT
  170
+
161 171
 extend_vtable_output_is(<<'CODE',<<'OUTPUT', "Parrot_PMC_modulus_float" );
162 172
     Parrot_PMC_set_number_native(interp, pmc,  50.0);
163 173
     Parrot_PMC_set_number_native(interp, pmc3, 0.0);

0 notes on commit 334b8d1

Please sign in to comment.
Something went wrong with that request. Please try again.