Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[t] Parrot_PMC_isa and Parrot_PMC_getprops

  • Loading branch information...
commit 5ec95d93e8cd5ddf496c94531b8e2c868937673e 1 parent 2138979
@leto leto authored
Showing with 19 additions and 0 deletions.
  1. +19 −0 t/src/extend_vtable.t
View
19 t/src/extend_vtable.t
@@ -158,6 +158,25 @@ CODE
# actual tests start here
+extend_vtable_output_is(<<'CODE', <<'OUTPUT', "Parrot_PMC_isa");
+ integer = Parrot_PMC_isa(interp, pmc, createstring(interp, "Integer") );
+ Parrot_printf(interp, "%d\n", integer);
+
+ integer = Parrot_PMC_isa(interp, pmc, createstring(interp, "Birdpoop") );
+ Parrot_printf(interp, "%d\n", integer);
+CODE
+1
+0
+Done!
+OUTPUT
+
+# TODO: Improve this test
+extend_vtable_output_is(<<'CODE', <<'OUTPUT', "Parrot_PMC_getprops");
+ pmc = Parrot_PMC_getprops(interp, continuation);
+CODE
+Done!
+OUTPUT
+
extend_vtable_output_is(<<'CODE',<<'OUTPUT', "Parrot_PMC_i_modulus_float" );
Parrot_PMC_set_number_native(interp, pmc, 50.0);
Please sign in to comment.
Something went wrong with that request. Please try again.