aboutsummaryrefslogtreecommitdiff
path: root/t/getting.t
diff options
context:
space:
mode:
Diffstat (limited to 't/getting.t')
-rw-r--r--t/getting.t22
1 files changed, 22 insertions, 0 deletions
diff --git a/t/getting.t b/t/getting.t
new file mode 100644
index 0000000..15937a7
--- /dev/null
+++ b/t/getting.t
@@ -0,0 +1,22 @@
+#! /usr/bin/env perl6
+
+use v6.c;
+use Test;
+use lib "lib";
+
+plan 3;
+
+use Config;
+
+my $config = Config.new();
+
+$config.read({
+ a => "a",
+ b => {
+ c => "c"
+ }
+});
+
+ok $config.get("a") eq "a";
+ok $config.get("b.c") eq "c";
+ok $config.get("nonexistant") === Nil;