use
SPVM
'TestCase::Operator::Increment'
;
my
$api
= SPVM::api();
my
$start_memory_blocks_count
=
$api
->get_memory_blocks_count();
{
ok(SPVM::TestCase::Operator::Increment->pre_inc_var);
ok(SPVM::TestCase::Operator::Increment->pre_inc_element_access_constant_index);
ok(SPVM::TestCase::Operator::Increment->pre_inc_element_access_var_index);
ok(SPVM::TestCase::Operator::Increment->pre_inc_field_access);
ok(SPVM::TestCase::Operator::Increment->pre_inc_deref);
ok(SPVM::TestCase::Operator::Increment->pre_inc_class_var_access);
ok(SPVM::TestCase::Operator::Increment->pre_inc_array_field_access_constant_index);
ok(SPVM::TestCase::Operator::Increment->pre_inc_element_access_invocant_not_var);
ok(SPVM::TestCase::Operator::Increment->pre_inc_array_field_access_invocant_not_var);
ok(SPVM::TestCase::Operator::Increment->pre_inc_field_access_invocant_not_var);
}
{
ok(SPVM::TestCase::Operator::Increment->post_inc_var);
ok(SPVM::TestCase::Operator::Increment->post_inc_element_access_constant_index);
ok(SPVM::TestCase::Operator::Increment->post_inc_element_access_var_index);
ok(SPVM::TestCase::Operator::Increment->post_inc_field_access);
ok(SPVM::TestCase::Operator::Increment->post_inc_deref);
ok(SPVM::TestCase::Operator::Increment->post_inc_class_var_access);
ok(SPVM::TestCase::Operator::Increment->post_inc_array_field_access_constant_index);
ok(SPVM::TestCase::Operator::Increment->post_inc_element_access_invocant_not_var);
ok(SPVM::TestCase::Operator::Increment->post_inc_array_field_access_invocant_not_var);
ok(SPVM::TestCase::Operator::Increment->post_inc_field_access_invocant_not_var);
}
$api
->set_exception(
undef
);
my
$end_memory_blocks_count
=
$api
->get_memory_blocks_count();
is(
$end_memory_blocks_count
,
$start_memory_blocks_count
);
done_testing;