Skip to content

Commit 56457ad

Browse files
committed
fix test
1 parent 2643a3f commit 56457ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dsc_lib/src/functions/equals.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ mod tests {
6363
}
6464

6565
#[test]
66-
fn array_equal() {
66+
fn different_types() {
6767
let mut parser = Statement::new().unwrap();
68-
let result = parser.parse_and_execute("[equals([1,2,3],[1,2,3])]", &Context::new()).unwrap();
69-
assert_eq!(result, Value::Bool(true));
68+
let result = parser.parse_and_execute("[equals(1,'string')]", &Context::new()).unwrap();
69+
assert_eq!(result, Value::Bool(false));
7070
}
7171

7272
// TODO: Add tests for arrays once `createArray()` is implemented

0 commit comments

Comments
 (0)