Add a test to confirm references are getting parsed.

This commit is contained in:
Tom Alexander 2020-05-24 13:58:20 -04:00
parent abf251c68d
commit fff401da7e
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -711,6 +711,20 @@ mod tests {
); );
} }
#[test]
fn test_reference_to_variable() {
assert_eq!(
super::reference("{$idx}"),
Ok((
"",
Reference {
path: Path { keys: vec!["$idx"] },
filters: Vec::new(),
}
))
);
}
#[test] #[test]
fn test_path() { fn test_path() {
assert_eq!( assert_eq!(