Skip to content

Commit

Permalink
update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Enkelmann committed Sep 1, 2023
1 parent 3c17da6 commit 4bfd3fc
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/cwe_checker_lib/src/analysis/expression_propagation/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,11 +142,7 @@ fn inter_block_propagation() {
variable!("X:8"),
expr!("-(42:4)").un_op(UnOpType::BoolNegate),
),
Def::assign(
"entry_jmp_def_2",
variable!("Z:8"),
expr!("-(42:4)").un_op(UnOpType::IntNegate),
)
Def::assign("entry_jmp_def_2", variable!("Z:8"), expr!("42:4"),)
]
)
}
Expand Down Expand Up @@ -290,11 +286,7 @@ fn expressions_inserted() {
variable!("X:8"),
expr!("-(42:4)").un_op(UnOpType::BoolNegate),
),
Def::assign(
"entry_jmp_def_2",
variable!("Z:8"),
expr!("-(42:4)").un_op(UnOpType::IntNegate)
)
Def::assign("entry_jmp_def_2", variable!("Z:8"), expr!("42:4"))
]
);
assert_eq!(
Expand Down

0 comments on commit 4bfd3fc

Please sign in to comment.