diff options
Diffstat (limited to 't')
-rw-r--r-- | t/read.t | 15 | ||||
-rw-r--r-- | t/test.yaml | 3 |
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 |