4 |
use strict; |
use strict; |
5 |
use autodie; |
use autodie; |
6 |
|
|
7 |
use Test::More tests => 20; |
use Test::More tests => 22; |
8 |
use Data::Dump qw/dump/; |
use Data::Dump qw/dump/; |
9 |
use English; |
use English; |
10 |
|
|
21 |
ok( client::conf( $host => 'test' => 'value' ), 'conf set' ); |
ok( client::conf( $host => 'test' => 'value' ), 'conf set' ); |
22 |
cmp_ok( client::conf( $host => 'test' ), 'eq', 'value', 'value' ); |
cmp_ok( client::conf( $host => 'test' ), 'eq', 'value', 'value' ); |
23 |
|
|
24 |
|
ok( client::conf( $host => 'dir/test' => 'in_dir' ), 'conf test/dir' ); |
25 |
|
cmp_ok( client::conf( $host => 'dir/test' ), 'eq', 'in_dir', 'value' ); |
26 |
|
|
27 |
ok( ! client::conf( $host => 'non-existing' ), 'conf non-existing' ); |
ok( ! client::conf( $host => 'non-existing' ), 'conf non-existing' ); |
28 |
|
|
29 |
ok( client::remove( $host ), "remove $host" ); |
ok( client::remove( $host ), "remove $host" ); |