aboutsummaryrefslogtreecommitdiff
path: root/t/02-getting.t
diff options
context:
space:
mode:
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";