use
SPVM
'TestCase::Module::ByteList'
;
my
$api
= SPVM::api();
my
$start_memory_blocks_count
=
$api
->get_memory_blocks_count();
{
ok(SPVM::TestCase::Module::ByteList->fields);
ok(SPVM::TestCase::Module::ByteList->new);
ok(SPVM::TestCase::Module::ByteList->new_len);
ok(SPVM::TestCase::Module::ByteList->get);
ok(SPVM::TestCase::Module::ByteList->insert);
ok(SPVM::TestCase::Module::ByteList->
pop
);
ok(SPVM::TestCase::Module::ByteList->
push
);
ok(SPVM::TestCase::Module::ByteList->remove);
ok(SPVM::TestCase::Module::ByteList->replace);
ok(SPVM::TestCase::Module::ByteList->
splice
);
ok(SPVM::TestCase::Module::ByteList->reserve);
ok(SPVM::TestCase::Module::ByteList->resize);
ok(SPVM::TestCase::Module::ByteList->set);
ok(SPVM::TestCase::Module::ByteList->
shift
);
ok(SPVM::TestCase::Module::ByteList->to_array);
ok(SPVM::TestCase::Module::ByteList->get_array_unsafe);
ok(SPVM::TestCase::Module::ByteList->
unshift
);
ok(SPVM::TestCase::Module::ByteList->clone);
ok(SPVM::TestCase::Module::ByteList->push_array);
ok(SPVM::TestCase::Module::ByteList->unshift_array);
}
$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;