Skip to content

Commit

Permalink
fix: Improved tests with hash
Browse files Browse the repository at this point in the history
  • Loading branch information
can-keklik committed Nov 26, 2024
1 parent 8b12ca9 commit 4670637
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lykiadb-lang/tests/lang/generic/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ fn different_exprs_with_same_ids_should_not_be_equal() {
let e1 = create_simple_add_expr(1, 1.0, 2.0);

assert_ne!(e0, e1);

let mut set: HashSet<Expr> = HashSet::new();

set.insert(e0);

assert!(!set.contains(&e1));
}


Expand All @@ -58,4 +64,10 @@ fn mirrored_exprs_should_not_be_equal() {
let e1 = create_simple_add_expr(1, 1.0, 2.0);

assert_ne!(e0, e1);

let mut set: HashSet<Expr> = HashSet::new();

set.insert(e0);

assert!(!set.contains(&e1));
}

0 comments on commit 4670637

Please sign in to comment.