3 |
use warnings; |
use warnings; |
4 |
use strict; |
use strict; |
5 |
|
|
6 |
use Test::More tests => 71; |
use Test::More tests => 75; |
7 |
|
|
8 |
use lib 'lib'; |
use lib 'lib'; |
9 |
|
|
26 |
|
|
27 |
cmp_ok( $o->get( 'foo' ), 'eq', 'baz', 'get foo = baz' ); |
cmp_ok( $o->get( 'foo' ), 'eq', 'baz', 'get foo = baz' ); |
28 |
|
|
29 |
|
ok( $o->set( 'test-undef' => 42 ), 'set test-undef' ); |
30 |
|
ok( $o->set( 'test-undef' => undef ), 'set undef' ); |
31 |
|
ok( ! defined $o->get( 'test-undef' ), 'get undef' ); |
32 |
|
diag $o->exists( 'test-undef' ); |
33 |
|
ok( $o->exists( 'test-undef' ), 'exists undef' ); |
34 |
|
|
35 |
$o->del('non-existant'); |
$o->del('non-existant'); |
36 |
|
|
37 |
ok( ! $o->exists( 'non-existant' ), 'exists non-existant' ); |
ok( ! $o->exists( 'non-existant' ), 'exists non-existant' ); |