aboutsummaryrefslogtreecommitdiff
path: root/t/02-merge.t
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2017-04-26 23:16:48 +0200
committerPatrick Spek <p.spek@tyil.nl>2017-04-26 23:16:48 +0200
commit6aed1eca976c3eec6b971f18a74943c8e5274d2e (patch)
treed5858e98e23a796d1bf77fb43563bf0c92dc0b36 /t/02-merge.t
parentc1dc65009e381ab09f15bb73529491d427d77232 (diff)
Update tests
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..8018e73
--- /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"
+ }
+}