use lib "t/lib";
use TestAuto;

use strict;
use warnings;

use Test::More;

use SPVM 'TestCase::Isa';



# Start objects count
my $start_memory_blocks_count = SPVM::get_memory_blocks_count();

# isa
{
  ok(SPVM::TestCase::Isa->isa_any_object_type());
  ok(SPVM::TestCase::Isa->isa_numeric_type());
  ok(SPVM::TestCase::Isa->isa_multi_numeric_type());
  ok(SPVM::TestCase::Isa->isa_match_class());
  ok(SPVM::TestCase::Isa->isa_not_match_class());
  ok(SPVM::TestCase::Isa->isa_match_array());
  ok(SPVM::TestCase::Isa->isa_not_match_class_undef());
  ok(SPVM::TestCase::Isa->isa_match_callback());
  ok(SPVM::TestCase::Isa->isa_not_match_callback_undef());
}

# All object is freed
my $end_memory_blocks_count = SPVM::get_memory_blocks_count();
is($end_memory_blocks_count, $start_memory_blocks_count);

done_testing;
