summaryrefslogtreecommitdiff
path: root/t/conf11.t
diff options
context:
space:
mode:
Diffstat (limited to 't/conf11.t')
-rw-r--r--t/conf11.t17
1 files changed, 17 insertions, 0 deletions
diff --git a/t/conf11.t b/t/conf11.t
new file mode 100644
index 0000000..13516b8
--- /dev/null
+++ b/t/conf11.t
@@ -0,0 +1,17 @@
+# -*- perl -*-
+use lib qw(t lib);
+use strict;
+use Test;
+use TestConfig;
+
+plan(tests => 3);
+
+my $cfg = new TestConfig(
+ config => [
+ 'core.retain-interval' => 10,
+ 'core.tempdir' => '/tmp'
+ ]
+ );
+ok(join(',', $cfg->getnode('core')->keys), 'retain-interval,tempdir');
+ok($cfg->getnode('core')->keys, 2);
+ok(join(',', sort $cfg->names_of('core')), 'retain-interval,tempdir');

Return to:

Send suggestions and report system problems to the System administrator.