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

use lib "t/testlib";
use strict;
use SPVM 'TestCase::Inline';
# Start objects count
my $start_memory_blocks_count = SPVM::api->get_memory_blocks_count();
# Inline constant sub
{
ok(SPVM::TestCase::Inline->constant_method);
ok(SPVM::TestCase::Inline->constant_method_return_double == 0.25);
}
# Inline new
{
ok(SPVM::TestCase::Inline->new_inline);
ok(SPVM::TestCase::Inline->new);
isa_ok(SPVM::TestCase::Inline->new, "SPVM::BlessedObject::Class");
}
# 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;