aboutsummaryrefslogtreecommitdiff
path: root/t/02-getting.t
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2020-07-04 13:46:25 +0200
committerPatrick Spek <p.spek@tyil.nl>2020-07-12 08:59:13 +0200
commitbd3bc6769547e89dc5d3e255aa4babc2cc5ffe48 (patch)
tree974bf72d443dbf0d1bffea29793becee806b43bc /t/02-getting.t
parent2d0de9cc3f93f661044f20b55c6a03860e8a0de8 (diff)
Overhaul Config to 3.0.0
Diffstat (limited to 't/02-getting.t')
-rw-r--r--t/02-getting.t18
1 files changed, 9 insertions, 9 deletions
diff --git a/t/02-getting.t b/t/02-getting.t
index 487b150..04859e2 100644
--- a/t/02-getting.t
+++ b/t/02-getting.t
@@ -18,17 +18,17 @@ $config.read({
is $config.get("a"), "a", "Get simple key";
is $config.get("b.c"), "c", "Get nested key";
-is $config.get("nonexistant", "test"), "test", "Get nonexistant key with default";
-ok $config.get("nonexistant") === Nil, "Get nonexistant key";
+is $config.get("nonexistent", "test"), "test", "Get nonexistent key with default";
+ok $config.get("nonexistent") === Nil, "Get nonexistent key";
is $config.get(["a"]), "a", "Get simple key by array";
is $config.get(["b", "c"]), "c", "Get nested key by array";
-is $config.get(["nonexistant"], "test"), "test", "Get nonexistant key by array with default";
-ok $config.get(["nonexistant"]) === Nil, "Get nonexistant key by array";
+is $config.get(["nonexistent"], "test"), "test", "Get nonexistent key by array with default";
+ok $config.get(["nonexistent"]) === Nil, "Get nonexistent key by array";
-is $config.<a>, "a", "Get simple key via associative index";
-is $config.<b.c>, "c", "Get nested key via associative index";
-ok $config.<nonexistant> === Nil, "Get nonexistant key via associative index";
+is $config<a>, "a", "Get simple key via associative index";
+is $config<b.c>, "c", "Get nested key via associative index";
+is $config<nonexistent>, Nil, "Get nonexistent key via associative index";
-is $config.get(Nil, "test"), "test", "Attempt .get with Nil key with default";
-ok $config.get(Nil) === Nil, "Attempt to .get with Nil key";
+is $config.get('nonexistent', "test"), "test", "Attempt .get with nonexistent key with default";
+is $config.get('nonexistent'), Nil, "Attempt to .get with nonexistent key";