9 # Do a basic test on all the tied methods of Tie::Hash::NamedCapture
22 is($+{a}, "h", "FETCH");
23 is($+{b}, "l", "FETCH");
24 is($-{a}[0], "h", "FETCH");
25 is($-{a}[1], "a", "FETCH");
28 eval { $+{a} = "yon" };
29 ok(index($@, "read-only") != -1, "STORE");
32 eval { delete $+{a} };
33 ok(index($@, "read-only") != -1, "DELETE");
37 ok(index($@, "read-only") != -1, "CLEAR");
40 ok(exists $+{e}, "EXISTS");
41 ok(!exists $+{d}, "EXISTS");
44 is(join('|', sort keys %+), "a|b|e", "FIRSTKEY/NEXTKEY");
47 is(scalar(%+), 3, "SCALAR");
48 is(scalar(%-), 3, "SCALAR");