<commit_before>use v6;

use Test;

# L<S32::Str/Str/=item length>

=begin pod

Various length tests (though "length" should not be used)

Don't mismatch "length" with the "width" property for Unicode characters.

L<"http://www.unicode.org/unicode/reports/tr11/">

=end pod

plan 46;

throws_like({"moose".length}, X::Method::NotFound, 'Str.length properly unimplemented');

# string literals, for sanity

# L<S32::Str/Str/=item chars>

# Precedence tests
#?niecza 2 skip '"abcdef" > 4 makes niecza unhappy'
#?rakudo 2 skip '"abcdef" > 4 makes rakudo unhappy'
ok (chars "abcdef" > 4),     "chars() has the right precedence (1)";
is (chars("abcdef" > 4)), 0, "chars() has the right precedence (2)";

# and the real tests.<commit_msg>Remove test fossils.<commit_after>use v6;

use Test;

# L<S32::Str/Str/=item length>

=begin pod

Various length tests (though "length" should not be used)

Don't mismatch "length" with the "width" property for Unicode characters.

L<"http://www.unicode.org/unicode/reports/tr11/">

=end pod

plan 44;

throws_like({"moose".length}, X::Method::NotFound, 'Str.length properly unimplemented');

# string literals, for sanity

# L<S32::Str/Str/=item chars>
{'fraction_non_alphanumeric': 0.15118243243243243, 'fraction_numerical': 0.022804054054054054, 'mean_word_length': 4.895522388059701, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1150746', 'n_tokens_mistral': 450, 'n_tokens_neox': 407, 'n_words': 129}