diff options
Diffstat (limited to 't/conf09.t')
-rw-r--r-- | t/conf09.t | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/t/conf09.t b/t/conf09.t new file mode 100644 index 0000000..c533747 --- /dev/null +++ b/t/conf09.t @@ -0,0 +1,20 @@ +# -*- perl -*- +use lib qw(t lib); +use strict; +use Test; +use ConfigSpec; +use ConfigSpec3; + +plan(tests => 2); + +my $c = new ConfigSpec; +my $c3 = new ConfigSpec3; + +ok($c->canonical_lexicon, + q{{"core" => {"section" => {"base" => {"default" => "null","mandatory" => 1},"number" => {"array" => 1,"re" => "^\\\\d+\\$"},"size" => {"re" => "\\\\d+(?:(?i) *[kmg])"}}},"load" => {"section" => {"*" => {},"file" => {"check" => "_check_abs_name","mandatory" => 1}}}}}); + +ok($c3->canonical_lexicon, + q{{"core" => {"section" => {"root" => {"mandatory" => 1}}},"dir" => {"section" => {"diag" => {},"store" => {},"temp" => {}}}}}); + + + |