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:37:21 +0300
commit4ac0078cdbea3fdb395c62077290e6368f13533d (patch)
tree2807e5826f834780e03cb1a7c4810961b293813e /src/path/parser.rs
parente8fa9fee96185ddd18ebcef8a925c75459111edb (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]