diff options
Diffstat (limited to 't/02-merge.t')
-rw-r--r-- | t/02-merge.t | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/t/02-merge.t b/t/02-merge.t new file mode 100644 index 0000000..cf9aa6a --- /dev/null +++ b/t/02-merge.t @@ -0,0 +1,22 @@ +#! /usr/bin/env perl6 + +use v6.c; +use Test; +use lib "lib"; + +use Config; + +plan 3; + +my $config = Config.new(); + +ok $config.read("t/files/config.yaml"), "Read initial config"; +ok $config.read("t/files/merge.yaml"), "Read merge config"; + +is-deeply $config.get(), { + a => "a", + b => { + c => "c", + d => "d" + } +}, "Ensure configurations are merged"; |