aboutsummaryrefslogtreecommitdiff
path: root/t/08-unsetting.t.t
blob: 78753fc188b1ff382cb5d392534c6450390703c7 (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.new;

$config.=read: %(
	a => "b",
	c => %(
		d => "e",
	),
);

ok $config.has("c.d"), "'c.d' exists";
ok $config.unset("c.d"), "'c.d' gets deleted";
nok $config.has("c.d"), "'c.d' no longer exists";
ok $config.has("c"), "'c' still exists";