<commit_before>use v6;

use Test;

plan 14;

=begin description

Testing parameter traits for subroutines

L<S06/"Parameter traits">

=end description

my $foo=1;

# note: many of these errors can be detected at compile time, so need
# eval_dies_ok instead of dies_ok
#
# test twice, once with assignment and once with increment, rakudo
# used to catch the first but not the latter.
#
#?rakudo todo 'TODO: catch modification of subroutine arg'<commit_msg>[t/spec] Unfudge test for $x++ where $x is readonly.<commit_after>use v6;

use Test;

plan 14;

=begin description

Testing parameter traits for subroutines

L<S06/"Parameter traits">

=end description

my $foo=1;

# note: many of these errors can be detected at compile time, so need
# eval_dies_ok instead of dies_ok
#
# test twice, once with assignment and once with increment, rakudo
# used to catch the first but not the latter.
#
{'fraction_non_alphanumeric': 0.07528089887640449, 'fraction_numerical': 0.01348314606741573, 'mean_word_length': 4.60377358490566, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7613001', 'n_tokens_mistral': 289, 'n_tokens_neox': 276, 'n_words': 125}