<commit_before>#!/usr/bin/env perl6

use v6;
use Test;
use Inline::Perl5;

plan 1;

my $i = p5_init_perl();

throws_like { $i.call('dummy', 'main', Any.new) }, X::Inline::Perl5::Unmarshallable, object => Any;

$i.DESTROY;

# vim: ft=perl6<commit_msg>more p6 -> p5 tests<commit_after>#!/usr/bin/env perl6

use v6;
use Test;
use Inline::Perl5;

plan 6;

my $i = p5_init_perl();
$i.run(q[ sub identity { return $_[1] }; ]);

for ('abc', 24, [1, 2], { a=> 1, b => 2}, Any) -> $obj {
    is_deeply $i.call('identity', 'main', $obj), $obj, "Can round-trip " ~ $obj.^name;
}

throws_like { $i.call('dummy', 'main', Any.new) }, X::Inline::Perl5::Unmarshallable, object => Any;

$i.DESTROY;

# vim: ft=perl6
{'fraction_non_alphanumeric': 0.22636103151862463, 'fraction_numerical': 0.0329512893982808, 'mean_word_length': 4.4609375, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4572924', 'n_tokens_mistral': 329, 'n_tokens_neox': 316, 'n_words': 72}