aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2017-04-24 00:22:00 +0200
committerPatrick Spek <p.spek@tyil.nl>2023-07-25 02:16:05 +0200
commit3df3e92fd342e7a9951970b5c91cb88274d653da (patch)
tree9d215cbf17602f44133a8fe6b3312a67859c55b1 /t
parentd53cd8d297d5083833b9e962b238a3e3fe9ef7f0 (diff)
Update the test cases to check for the right value
Diffstat (limited to 't')
-rw-r--r--t/getting.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/getting.t b/t/getting.t
index e4339bb..06a345a 100644
--- a/t/getting.t
+++ b/t/getting.t
@@ -4,7 +4,7 @@ use v6.c;
use Test;
use lib "lib";
-plan 6;
+plan 8;
use Config;
@@ -20,9 +20,9 @@ $config.read({
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") === Nil, "Get nonexistant key with default";
+ok $config.get("nonexistant", "test") === "test", "Get nonexistant key with default";
ok $config.get(["a"]) eq "a", "Get simple key by array";
ok $config.get(["b", "c"]) eq "c", "Get nested key by array";
ok $config.get(["nonexistant"]) === Nil, "Get nonexistant key by array";
-ok $config.get(["nonexistant"], "test") === Nil, "Get nonexistant key by array with default";
+ok $config.get(["nonexistant"], "test") === "test", "Get nonexistant key by array with default";