Add a test to confirm references are getting parsed.

master
Tom Alexander 4 years ago
parent abf251c68d
commit fff401da7e
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

@ -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]
fn test_path() {
assert_eq!(

Loading…
Cancel
Save