diff options
Diffstat (limited to 't/conf03.t')
-rw-r--r-- | t/conf03.t | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/t/conf03.t b/t/conf03.t new file mode 100644 index 0000000..5aa8313 --- /dev/null +++ b/t/conf03.t @@ -0,0 +1,31 @@ +# -*- perl -*- + +use lib 't'; +use strict; +use Test; +use TestConfig; + +plan(tests => 1); + +my %keywords = ( + core => { + section => { + 'tempdir' => 1, + 'verbose' => 1, + } + }, + backend => { + section => { + file => 1 + } + } +); +my $cfg = new TestConfig(parameters => \%keywords, + expect => [ 'keyword "output" is unknown' ]); +ok($cfg->errors() == 1); +__DATA__ +# This is a sample configuration file +[core] + tempdir = /tmp + output = file + |