The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

use lib "t/testlib";
use strict;
use SPVM 'TestCase::Lib::Format';
# Start objects count
my $start_memory_blocks_count = SPVM::get_memory_blocks_count();
# sprintf
{
ok(SPVM::TestCase::Lib::Format->sprintf_d);
ok(SPVM::TestCase::Lib::Format->sprintf_u);
ok(SPVM::TestCase::Lib::Format->sprintf_ld);
ok(SPVM::TestCase::Lib::Format->sprintf_lu);
ok(SPVM::TestCase::Lib::Format->sprintf_f);
ok(SPVM::TestCase::Lib::Format->sprintf_g);
ok(SPVM::TestCase::Lib::Format->sprintf_c);
ok(SPVM::TestCase::Lib::Format->sprintf_s);
ok(SPVM::TestCase::Lib::Format->sprintf_percent);
ok(SPVM::TestCase::Lib::Format->sprintf_x);
ok(SPVM::TestCase::Lib::Format->sprintf_X);
ok(SPVM::TestCase::Lib::Format->sprintf_lx);
ok(SPVM::TestCase::Lib::Format->sprintf_lX);
ok(SPVM::TestCase::Lib::Format->sprintf_all);
}
# 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;