summaryrefslogtreecommitdiffstats
path: root/tests/get.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/get.rs')
-rw-r--r--tests/get.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/get.rs b/tests/get.rs
index 1c98643..2df50a5 100644
--- a/tests/get.rs
+++ b/tests/get.rs
@@ -36,6 +36,17 @@ fn make() -> Config {
}
#[test]
+fn test_not_found() {
+ let c = make();
+ let res = c.get::<bool>("not_found");
+
+ assert!(res.is_err());
+ assert_eq!(res.unwrap_err().to_string(),
+ "configuration property \"not_found\" not found"
+ .to_string());
+}
+
+#[test]
fn test_scalar() {
let c = make();