summaryrefslogtreecommitdiff
path: root/lib/Tie/Hash.t
blob: fe43849903c7eb60e46b3baa32e9f52eeb165e13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!./perl

# These tests are not complete. Patches welcome.

use Test::More;

BEGIN {use_ok( 'Tie::Hash' )};

# these are "abstract virtual" parent methods
for my $method (qw( TIEHASH EXISTS )) {
	eval { Tie::Hash->$method() };
	like( $@, qr/doesn't define an? $method/, "croaks on inherited $method()" );
}

done_testing();