diff options
author | Patrick Spek <p.spek@tyil.nl> | 2017-04-26 23:10:00 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2017-04-26 23:10:00 +0200 |
commit | c2b980b7962951bc5c277473d41974e76a5e66fa (patch) | |
tree | 990e016095549d0b7c052d0855b60eb7d34daeea /t/getting.t | |
parent | ed219a26574e05ba27264d73e75e5690e478570f (diff) |
Rename test files
Diffstat (limited to 't/getting.t')
-rw-r--r-- | t/getting.t | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/t/getting.t b/t/getting.t deleted file mode 100644 index 06a345a..0000000 --- a/t/getting.t +++ /dev/null @@ -1,28 +0,0 @@ -#! /usr/bin/env perl6 - -use v6.c; -use Test; -use lib "lib"; - -plan 8; - -use Config; - -my $config = Config.new(); - -$config.read({ - a => "a", - b => { - c => "c" - } -}); - -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"; - -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") === "test", "Get nonexistant key by array with default"; |