Perl x Open Food Facts Hackathon: Paris, France - May 24-25 Learn more

use lib "t/testlib";
use strict;
use SPVM 'TestCase::Module::Array';
# Start objects count
my $start_memory_blocks_count = SPVM::api->get_memory_blocks_count();
# Array
{
ok(SPVM::TestCase::Module::Array->copy_byte);
ok(SPVM::TestCase::Module::Array->copy_double);
ok(SPVM::TestCase::Module::Array->copy_float);
ok(SPVM::TestCase::Module::Array->copy_int);
ok(SPVM::TestCase::Module::Array->copy_long);
ok(SPVM::TestCase::Module::Array->copy_object);
ok(SPVM::TestCase::Module::Array->copy_object_address);
ok(SPVM::TestCase::Module::Array->copy_short);
ok(SPVM::TestCase::Module::Array->copy_string);
ok(SPVM::TestCase::Module::Array->copy_string_address);
ok(SPVM::TestCase::Module::Array->dump_unsigned_byte);
ok(SPVM::TestCase::Module::Array->dump_unsigned_int);
ok(SPVM::TestCase::Module::Array->dump_unsigned_long);
ok(SPVM::TestCase::Module::Array->dump_unsigned_short);
ok(SPVM::TestCase::Module::Array->equals_byte);
ok(SPVM::TestCase::Module::Array->equals_double);
ok(SPVM::TestCase::Module::Array->equals_float);
ok(SPVM::TestCase::Module::Array->equals_int);
ok(SPVM::TestCase::Module::Array->equals_long);
ok(SPVM::TestCase::Module::Array->equals_object);
ok(SPVM::TestCase::Module::Array->equals_object_address);
ok(SPVM::TestCase::Module::Array->equals_short);
ok(SPVM::TestCase::Module::Array->equals_string);
ok(SPVM::TestCase::Module::Array->equals_string_address);
ok(SPVM::TestCase::Module::Array->memcpy_byte);
ok(SPVM::TestCase::Module::Array->memcpy_double);
ok(SPVM::TestCase::Module::Array->memcpy_float);
ok(SPVM::TestCase::Module::Array->memcpy_int);
ok(SPVM::TestCase::Module::Array->memcpy_long);
ok(SPVM::TestCase::Module::Array->memcpy_object_address);
ok(SPVM::TestCase::Module::Array->memcpy_short);
ok(SPVM::TestCase::Module::Array->memcpy_string_address);
ok(SPVM::TestCase::Module::Array->memmove_byte);
ok(SPVM::TestCase::Module::Array->memmove_double);
ok(SPVM::TestCase::Module::Array->memmove_float);
ok(SPVM::TestCase::Module::Array->memmove_int);
ok(SPVM::TestCase::Module::Array->memmove_long);
ok(SPVM::TestCase::Module::Array->memmove_object_address);
ok(SPVM::TestCase::Module::Array->memmove_short);
ok(SPVM::TestCase::Module::Array->memmove_string_address);
ok(SPVM::TestCase::Module::Array->memset_byte);
ok(SPVM::TestCase::Module::Array->memset_double);
ok(SPVM::TestCase::Module::Array->memset_float);
ok(SPVM::TestCase::Module::Array->memset_int);
ok(SPVM::TestCase::Module::Array->memset_long);
ok(SPVM::TestCase::Module::Array->memset_object);
ok(SPVM::TestCase::Module::Array->memset_short);
ok(SPVM::TestCase::Module::Array->memset_string);
ok(SPVM::TestCase::Module::Array->merge_byte);
ok(SPVM::TestCase::Module::Array->merge_double);
ok(SPVM::TestCase::Module::Array->merge_float);
ok(SPVM::TestCase::Module::Array->merge_int);
ok(SPVM::TestCase::Module::Array->merge_long);
ok(SPVM::TestCase::Module::Array->merge_object);
ok(SPVM::TestCase::Module::Array->merge_short);
ok(SPVM::TestCase::Module::Array->merge_string);
ok(SPVM::TestCase::Module::Array->new_proto);
}
# All object is freed
my $end_memory_blocks_count = SPVM::api->get_memory_blocks_count();
is($end_memory_blocks_count, $start_memory_blocks_count);
done_testing;