<commit_before>use v6;

use Test;

plan *;

# basic lvalue assignment
# L<S09/Hashes>

my %hash1;
isa_ok(%hash1, Hash);
%hash1{"one"} = 5;
is(%hash1{"one"}, 5, 'lvalue hash assignment works (w/ double quoted keys)');

%hash1{'one'} = 4;<commit_msg>[t/spec] Check .does rather than using isa_ok for Hash test.<commit_after>use v6;

use Test;

plan *;

# basic lvalue assignment
# L<S09/Hashes>

my %hash1;
ok(%hash1.does(Hash), '%hash1 does Hash');
%hash1{"one"} = 5;
is(%hash1{"one"}, 5, 'lvalue hash assignment works (w/ double quoted keys)');

%hash1{'one'} = 4;
{'fraction_non_alphanumeric': 0.18971631205673758, 'fraction_numerical': 0.040780141843971635, 'mean_word_length': 5.141304347826087, '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': '1437185', 'n_tokens_mistral': 234, 'n_tokens_neox': 223, 'n_words': 64}