aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 5c5fa91..4b87b69 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -240,8 +240,8 @@ mod tests {
let foo1 = value.lookup("values.1.foo").unwrap();
assert_eq!(foo1.as_str().unwrap(), "qux");
- let no_bar = value.lookup("test.bar");
- assert!(no_bar.is_none());
+ assert!(value.lookup("test.bar").is_none());
+ assert!(value.lookup("test.foo.bar").is_none());
}
#[test]