Skip to content

Commit

Permalink
[t] Parrot_PMC_instantiate
Browse files Browse the repository at this point in the history
  • Loading branch information
leto committed May 27, 2011
1 parent 70ebe91 commit 271d5be
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion 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 => 134;
plan tests => 135;

=head1 NAME
Expand Down Expand Up @@ -159,6 +159,15 @@ CODE

# actual tests start here

extend_vtable_output_is(<<'CODE', <<'OUTPUT', "Parrot_PMC_instantiate");
Parrot_PMC_instantiate(interp, pmc, pmc2);
string = Parrot_PMC_name(interp, pmc);
Parrot_printf(interp, "%S\n", string);
CODE
Integer
Done!
OUTPUT

extend_vtable_output_is(<<'CODE', <<'OUTPUT', "Parrot_PMC_(get|set)_attr_str");
type = Parrot_PMC_typenum(interp, "Exception");
pmc = Parrot_PMC_new(interp, type);
Expand Down Expand Up @@ -230,6 +239,7 @@ default
Done!
OUTPUT


# TODO: Improve this test
extend_vtable_output_is(<<'CODE', <<'OUTPUT', "Parrot_PMC_init_pmc");
Parrot_PMC_init_pmc(interp, continuation2, continuation);
Expand Down

0 comments on commit 271d5be

Please sign in to comment.