From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

use Test::Simple tests => 2;
use strict;
use Inline Config => DIRECTORY => './blib_test';
use Inline Python => <<'END';
def debug(x):
return str(x)
END
my @a = ('foo' , 'bar', 'baz');
delete $a[1];
ok(debug(undef) eq 'None');
ok(debug(\@a) eq "['foo', None, 'baz']");