diff options
Diffstat (limited to 't/01conf12.t')
-rw-r--r-- | t/01conf12.t | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/t/01conf12.t b/t/01conf12.t index 8c0655b..1435a70 100644 --- a/t/01conf12.t +++ b/t/01conf12.t @@ -5,7 +5,7 @@ use Test; use TestConfig; use Data::Dumper; -plan(tests => 1); +plan(tests => 2); my $t = new TestConfig( config => [ @@ -29,3 +29,10 @@ ok(Data::Dumper->new([$t->as_hash]) ->Dump, '{"base" => "/etc","core" => {"file" => "passwd","group" => "group","home" => "/home"},"file" => {"passwd" => {"mode" => "0644","root" => {"dir" => "/root","uid" => 0}}}}'); +ok(Data::Dumper->new([$t->tree->File->as_hash]) + ->Sortkeys(1) + ->Useqq(1) + ->Terse(1) + ->Indent(0) + ->Dump, + '{"passwd" => {"mode" => "0644","root" => {"dir" => "/root","uid" => 0}}}'); |