Tagged 0.983 and removed the branch
[dbsrgits/DBM-Deep.git] / t / 29_dash_ell.t
CommitLineData
4fa63b60 1#!/usr/bin/perl -l
2
3##
4# DBM::Deep Test
5#
6# Test for interference from -l on the commandline.
7##
8use strict;
9use Test::More tests => 4;
10use Test::Exception;
11
12use_ok( 'DBM::Deep' );
13
14unlink "t/test.db";
15my $db = DBM::Deep->new( 't/test.db' );
16
17##
18# put/get key
19##
20$db->{key1} = "value1";
21is( $db->get("key1"), "value1", "get() works with hash assignment" );
22is( $db->fetch("key1"), "value1", "... fetch() works with hash assignment" );
23is( $db->{key1}, "value1", "... and hash-access also works" );