|
use SPVM 'TestCase::Operator::ArrayAccess' ; my $api = SPVM::api();
my $start_memory_blocks_count = $api ->get_memory_blocks_count();
{
my $element = SPVM::TestCase::Operator::ArrayAccess->array_set_and_get_array_element_first();
is( $element , 345);
}
{
my $element = SPVM::TestCase::Operator::ArrayAccess->array_set_and_get_array_element_last();
is( $element , 298);
}
{
my $total = SPVM::TestCase::Operator::ArrayAccess->array_culcurate_sum_by_for();
is( $total , 6);
}
$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;
|