Skip to content

Commit b00a4dd

Browse files
committed
Fix test
1 parent c89f5dd commit b00a4dd

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
@@ -117,8 +117,8 @@ mod tests {
117117
#[test]
118118
fn array_of_mixed_types() {
119119
let mut parser = Statement::new().unwrap();
120-
let result = parser.parse_and_execute("[last(createArray('text', 42, true))]", &Context::new()).unwrap();
121-
assert_eq!(result.as_bool(), Some(true));
120+
let result = parser.parse_and_execute("[last(createArray('text', 42, 'last'))]", &Context::new()).unwrap();
121+
assert_eq!(result.as_str(), Some("last"));
122122
}
123123

124124
#[test]

0 commit comments

Comments
 (0)