use
SPVM
'TestCase::Literal::Integer'
;
my
$api
= SPVM::api();
my
$start_memory_blocks_count
=
$api
->get_memory_blocks_count();
{
ok(SPVM::TestCase::Literal::Integer->integer_literal_decimal_notation);
ok(SPVM::TestCase::Literal::Integer->integer_literal_decimal_notation_extra);
}
{
ok(SPVM::TestCase::Literal::Integer->integer_literal_hex_notation);
ok(SPVM::TestCase::Literal::Integer->integer_literal_hex_notation_extra);
}
{
ok(SPVM::TestCase::Literal::Integer->integer_literal_octal_notation);
ok(SPVM::TestCase::Literal::Integer->integer_literal_octal_notation_extra);
}
{
ok(SPVM::TestCase::Literal::Integer->integer_literal_binary_notation);
ok(SPVM::TestCase::Literal::Integer->integer_literal_binary_notation_extra);
}
$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;