diff options
Diffstat (limited to 'src/path/parser.rs')
-rw-r--r-- | src/path/parser.rs | 9 |
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] |