<commit_before>use v6;

use Test;

# L<S29/Str/=item pos>

plan 2;

my $str = 'moose';
$str ~~ m/oo/;
eval_dies_ok('$str.pos', 'Str.pos superseeded by $/.to');

is($/.to, 2, '$/.to works');<commit_msg>[t/spec] pos.t fudged for rakudo<commit_after>use v6;

use Test;

# L<S29/Str/=item pos>

plan 2;

my $str = 'moose';
$str ~~ m/oo/;
eval_dies_ok('$str.pos', 'Str.pos superseeded by $/.to');

#?rakudo todo '$/.to'
is($/.to, 2, '$/.to works');
{'fraction_non_alphanumeric': 0.2505643340857788, 'fraction_numerical': 0.022573363431151242, 'mean_word_length': 3.723404255319149, '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': '291152', 'n_tokens_mistral': 220, 'n_tokens_neox': 211, 'n_words': 50}