summaryrefslogtreecommitdiffstats
path: root/src/path/parser.rs
diff options
context:
space:
mode:
authorXX <freecoder.xx@gmail.com>2018-04-08 16:25:56 +0300
committerXX <freecoder.xx@gmail.com>2018-04-08 16:25:56 +0300
commit52975a263612cea41fb3047a5e8f2bac9e1819b4 (patch)
treeda34be9a9f58b76533993ade7cf2743b629630bd /src/path/parser.rs
parent86771ac343c8c95df61c48895c9d679391f1aff9 (diff)
Fix initialy set arr path
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]