<commit_before>use v6;

use Test;

# L<S29/Str/=item pos>

plan 1;

my $str = 'moose';
$str ~~ m/oo/;
dies_ok($str.pos, 'Str.pos not implemented');<commit_msg>[spec] fixed pos.t test that used a dies_ok() inappropriately<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');

is($/.to, 2, '$/.to works');
{'fraction_non_alphanumeric': 0.21323529411764705, 'fraction_numerical': 0.022058823529411766, 'mean_word_length': 4.1125, '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': '1246335', 'n_tokens_mistral': 189, 'n_tokens_neox': 182, 'n_words': 46}