aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2017-04-23 21:44:40 +0200
committerPatrick Spek <p.spek@tyil.nl>2023-07-25 02:16:02 +0200
commit4686af7aeb17a62fe0a384fa5b49211716aeaf58 (patch)
treeff9730b497d7f4225b87f5a080b53eb2a1628512 /t
parentbdde8957370dde4cc35ab2a7d24a568f05c948d2 (diff)
Add multi get() to accept arrays
Diffstat (limited to 't')
-rw-r--r--t/getting.t6
1 files changed, 5 insertions, 1 deletions
diff --git a/t/getting.t b/t/getting.t
index 15937a7..9d0cc5c 100644
--- a/t/getting.t
+++ b/t/getting.t
@@ -4,7 +4,7 @@ use v6.c;
use Test;
use lib "lib";
-plan 3;
+plan 6;
use Config;
@@ -20,3 +20,7 @@ $config.read({
ok $config.get("a") eq "a";
ok $config.get("b.c") eq "c";
ok $config.get("nonexistant") === Nil;
+
+ok $config.get(["a"]) eq "a";
+ok $config.get(["b", "c"]) eq "c";
+ok $config.get(["nonexistant"]) === Nil;