Skip to content

Commit 371d4bf

Browse files
committed
fix unit test
1 parent 28c06a8 commit 371d4bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ mod tests {
9191
fn try_get_array_negative_index() {
9292
let mut parser = Statement::new().unwrap();
9393
let result = parser.parse_and_execute("[tryGet(createArray('value1', 'value2'), -1)]", &Context::new()).unwrap();
94-
assert_eq!(result, serde_json::json!(["value2"]));
94+
assert_eq!(result, serde_json::json!([null]));
9595
}
9696

9797
#[test]

0 commit comments

Comments
 (0)