blob: cf9aa6aa995404bf4b69f5483d70217a0b400103 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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";
|