Skip to content

Commit 03841cd

Browse files
committed
Not allowed integers
1 parent 8d14483 commit 03841cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/dsc-lib/src/functions/last.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ mod tests {
115115
}
116116

117117
#[test]
118-
fn array_of_mixed_types() {
118+
fn array_of_multiple_strings() {
119119
let mut parser = Statement::new().unwrap();
120-
let result = parser.parse_and_execute("[last(createArray('text', 42, 'last'))]", &Context::new()).unwrap();
120+
let result = parser.parse_and_execute("[last(createArray('text', 'middle', 'last'))]", &Context::new()).unwrap();
121121
assert_eq!(result.as_str(), Some("last"));
122122
}
123123

0 commit comments

Comments
 (0)