aboutsummaryrefslogtreecommitdiff
path: root/t/09-cloning.t
blob: 5bae887f0b974dcb5e40ec89961a28408de02fd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /usr/bin/env raku

use v6.c;

use Test;

use Config;

plan 2;

my $a = Config.new.read: %(
	foo => "bar",
	baz => 42,
);

my Config $b = $a.clone;

is-deeply $a.get, $b.get, "B contains the same data as A";
isnt $a, $b, "A and B are not the same object";

# vim: ft=raku noet