use lib "t/testlib";
use strict;
use SPVM 'TestCase::Literal::Integer';
# Start objects count
my $api = SPVM::api();
my $start_memory_blocks_count = $api->get_memory_blocks_count();
# Integer Literal - decimal notation
{
ok(SPVM::TestCase::Literal::Integer->integer_literal_decimal_notation);
ok(SPVM::TestCase::Literal::Integer->integer_literal_decimal_notation_extra);
}
# Integer Literal - hexadecimal notation
{
ok(SPVM::TestCase::Literal::Integer->integer_literal_hex_notation);
ok(SPVM::TestCase::Literal::Integer->integer_literal_hex_notation_extra);
}
# Integer Literal - octal notation
{
ok(SPVM::TestCase::Literal::Integer->integer_literal_octal_notation);
ok(SPVM::TestCase::Literal::Integer->integer_literal_octal_notation_extra);
}
# Integer Literal - binary notation
{
ok(SPVM::TestCase::Literal::Integer->integer_literal_binary_notation);
ok(SPVM::TestCase::Literal::Integer->integer_literal_binary_notation_extra);
}
# All object is freed
$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;