aboutsummaryrefslogtreecommitdiff
path: root/t/02-merge.t
diff options
context:
space:
mode:
authorPatrick Spek <Tyil@users.noreply.github.com>2017-04-26 23:54:32 +0200
committerGitHub <noreply@github.com>2017-04-26 23:54:32 +0200
commit5127bb559bad6e25bd53eb07cb9aefc538714985 (patch)
tree80c8916c7bc239f71c422780bbf549f9ac9afa29 /t/02-merge.t
parentc1dc65009e381ab09f15bb73529491d427d77232 (diff)
parent10a43069bef7746c3970c6a00e8ef555c53b8c5c (diff)
Merge pull request #1 from scriptkitties/merge-test
Add test for array merging
Diffstat (limited to 't/02-merge.t')
-rw-r--r--t/02-merge.t22
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";