summaryrefslogtreecommitdiffabout
path: root/t/conf02.t
authorSergey Poznyakoff <gray@gnu.org.ua>2018-01-20 10:10:57 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2018-01-20 16:22:40 (GMT)
commite406653af5ae596d2d6f212f6ebaf66bcfe5dbf1 (patch) (side-by-side diff)
treed02955cecd38c297b70feaad168cad91c748a4f7 /t/conf02.t
downloadconfig-parser-e406653af5ae596d2d6f212f6ebaf66bcfe5dbf1.tar.gz
config-parser-e406653af5ae596d2d6f212f6ebaf66bcfe5dbf1.tar.bz2
Initial commit
Diffstat (limited to 't/conf02.t') (more/less context) (show whitespace changes)
-rw-r--r--t/conf02.t13
1 files changed, 13 insertions, 0 deletions
diff --git a/t/conf02.t b/t/conf02.t
new file mode 100644
index 0000000..da0dc07
--- a/dev/null
+++ b/t/conf02.t
@@ -0,0 +1,13 @@
+# -*- perl -*-
+use lib qw(t lib);
+use strict;
+use Test;
+use ConfigSpec;
+
+plan(tests => 1);
+
+my $c = new ConfigSpec(expect => ['mandatory variable "load.file" not set']);
+ok($c->errors() == 1);
+__DATA__
+[core]
+ number = 5

Return to:

Send suggestions and report system problems to the System administrator.