diff options
author | Patrick Spek <p.spek@tyil.nl> | 2017-04-24 08:07:20 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2017-04-24 08:07:20 +0200 |
commit | c1dc65009e381ab09f15bb73529491d427d77232 (patch) | |
tree | 8ccaf2da3cf0f0f70b946521f830a54a941d0cf3 /t | |
parent | a5c9ad058898d4467cdc6993a9c1b3b1a096935f (diff) |
Add Travis checks
Diffstat (limited to 't')
-rw-r--r-- | t/read.t | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -6,10 +6,13 @@ use lib "lib"; use Config; -plan 3; +plan 5; my $config = Config.new(); -ok $config.read("t/test.yaml"); -ok $config.get("a") eq "a"; -ok $config.get("b.c") eq "c"; +ok $config.read("t/test.yaml"), "Read a YAML file"; + +ok $config.get("a") eq "a", "Get simple key"; +ok $config.get("b.c") eq "c", "Get nested key"; +ok $config.get("nonexistant") === Nil, "Get nonexistant key"; +ok $config.get("nonexistant", "test") === "test", "Get nonexistant key with default"; |