aboutsummaryrefslogtreecommitdiff
path: root/t/03-having.t
blob: 636c03d69c02fafa9f9b58aa5e840730c3703ea7 (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 raku

use v6.c;
use Test;

plan 4;

use Config;

my Config $config = Config.new;

$config.=read({
    a => "a",
    b => {
        c => "c"
    }
});

ok $config.has("a"), "Check existence of simple key";
ok $config.has("b.c"), "Check existence of nested key";
ok $config.has(["a"]), "Check existence of simple key using array";
ok $config.has(["b", "c"]), "Check existence of nested key using array";