Skip to content

Commit

Permalink
[t] Parrot_PMC_getprop
Browse files Browse the repository at this point in the history
  • Loading branch information
leto committed May 9, 2011
1 parent 3d00eba commit 621bb56
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions t/src/extend_vtable.t
Expand Up @@ -10,7 +10,7 @@ use File::Spec::Functions;

plan skip_all => 'src/parrot_config.o does not exist' unless -e catfile(qw/src parrot_config.o/);

plan tests => 106;
plan tests => 107;

=head1 NAME
Expand Down Expand Up @@ -129,13 +129,14 @@ void dotest(Parrot_Interp interp, void *unused)
$code
/* TODO: Shouldn't we also be destroying all the other PMCs ? */
/* TODO: Shouldn't we also be destroying all the other PMCs ?
Parrot_PMC_destroy(interp, pmc);
Parrot_PMC_destroy(interp, pmc_string);
Parrot_PMC_destroy(interp, pmc_string2);
Parrot_PMC_destroy(interp, pmc_string3);
Parrot_PMC_destroy(interp, pmc_float);
Parrot_PMC_destroy(interp, pmc_float2);
*/
/* TODO: Properly test this */
Parrot_destroy(interp);
Expand Down Expand Up @@ -525,6 +526,15 @@ CODE
Done!
OUTPUT

extend_vtable_output_is(<<'CODE', <<'OUTPUT', "Parrot_PMC_getprop");
string = createstring(interp, "_struct");
pmc = Parrot_PMC_getprop(interp,continuation , string);
Parrot_printf(interp,"42\n");
CODE
42
Done!
OUTPUT

extend_vtable_output_is(<<'CODE', <<'OUTPUT', "Parrot_PMC_delprop");
type = Parrot_PMC_typenum(interp, "Class");
pmc = Parrot_PMC_new(interp, type);
Expand Down

0 comments on commit 621bb56

Please sign in to comment.