aboutsummaryrefslogtreecommitdiff
path: root/t/02-merge.t
blob: 8018e73f10efd006a21835604eac1dd1347ea70f (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"
    }
}