aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2017-04-23 21:31:18 +0200
committerPatrick Spek <p.spek@tyil.nl>2017-04-23 21:31:18 +0200
commita5c9ad058898d4467cdc6993a9c1b3b1a096935f (patch)
tree328a326cc926c3a46e9daea253e5e3963ee2d8f9 /t
Initial commit
Diffstat (limited to 't')
-rw-r--r--t/read.t15
-rw-r--r--t/test.yaml3
2 files changed, 18 insertions, 0 deletions
diff --git a/t/read.t b/t/read.t
new file mode 100644
index 0000000..a65e6e8
--- /dev/null
+++ b/t/read.t
@@ -0,0 +1,15 @@
+#! /usr/bin/env perl6
+
+use v6.c;
+use Test;
+use lib "lib";
+
+use Config;
+
+plan 3;
+
+my $config = Config.new();
+
+ok $config.read("t/test.yaml");
+ok $config.get("a") eq "a";
+ok $config.get("b.c") eq "c";
diff --git a/t/test.yaml b/t/test.yaml
new file mode 100644
index 0000000..2b93ee8
--- /dev/null
+++ b/t/test.yaml
@@ -0,0 +1,3 @@
+a: a
+b:
+ c: c