Skip to content
Snippets Groups Projects
Commit 8b168773 authored by Hunter Goldstein's avatar Hunter Goldstein
Browse files

Add tests

parent 8a4cf765
No related branches found
No related tags found
No related merge requests found
......@@ -679,4 +679,15 @@ mod test {
let expected = array!["3"];
assert_eq!(expected, expand_string(line, &functions!(), false));
}
#[test]
fn inline_expression() {
let cases = vec![
(array!["5"], "@len([0 1 2 3 4])"),
(array!["FxOxO"], "$join(@chars(FOO), 'x')")
];
for (expected, input) in cases {
assert_eq!(expected, expand_string(input, &functions!(), false));
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment