diff options
author | Patrick Spek <p.spek@tyil.nl> | 2017-11-22 13:34:16 +0100 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2023-07-25 02:16:40 +0200 |
commit | d1fee36e3135ddc1382323f8db40236cef6599ce (patch) | |
tree | 6f0cbd13c843c06c90945d9d7535d640f963b9a2 /t | |
parent | f1aff4c119031f97bf06702079e743e2ed8941df (diff) |
Implement .keys method
Diffstat (limited to 't')
-rw-r--r-- | t/07-keys.t | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/t/07-keys.t b/t/07-keys.t new file mode 100644 index 0000000..225c0b8 --- /dev/null +++ b/t/07-keys.t @@ -0,0 +1,22 @@ +#! /usr/bin/env perl6 + +use v6; + +use Config::Parser::NULL; +use Config; +use Test; + +my Config $c .= new.read: %( + "a" => False, + "b" => False, + "c" => %( + "a" => False, + "b" => False, + ), +); + +my @keys = < a b c.a c.b >; + +is $c.keys, @keys, ".keys returns a list of all keys"; + +# vim: ft=perl6 noet |