summaryrefslogtreecommitdiffstats
path: root/src/path/parser.rs
diff options
context:
space:
mode:
authorRyan Leckey <leckey.ryan@gmail.com>2018-07-02 15:06:21 -0700
committerRyan Leckey <leckey.ryan@gmail.com>2018-07-02 15:06:21 -0700
commitb8a1d8a65defb08c501df83b464a55f270765876 (patch)
tree3668b5983885018401d48e2b4d233ab678f71f8a /src/path/parser.rs
parente5a8323544ec98254d459ec6ecac43c162529390 (diff)
parent6c856712825f69993f285c951cc32edb3858b61a (diff)
Merge branch 'master' of https://github.com/limbo-rs/config-rs
Diffstat (limited to 'src/path/parser.rs')
-rw-r--r--src/path/parser.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/path/parser.rs b/src/path/parser.rs
index 7629193..3ec433e 100644
--- a/src/path/parser.rs
+++ b/src/path/parser.rs
@@ -101,6 +101,15 @@ mod test {
let expected = Child(Box::new(Identifier("abcd".into())), "efgh".into());
assert_eq!(parsed, expected);
+
+ let parsed: Expression = from_str("abcd.efgh.ijkl").unwrap();
+ let expected = Child(Box::new(
+ Child(Box::new(
+ Identifier("abcd".into())
+ ), "efgh".into())
+ ), "ijkl".into());
+
+ assert_eq!(parsed, expected);
}
#[test]