Skip to content

Commit

Permalink
fix(tests): update test cases for postprocessing cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon-Becker committed Jan 27, 2024
1 parent ca5c994 commit d167b00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/src/ether/lexers/cleanup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ mod tests {
fn test_simplify_casts_simple() {
let line = String::from("uint256(uint256(arg0));");

assert_eq!(simplify_casts(&line), String::from("uint256(arg0);"));
assert_eq!(simplify_casts(&line), String::from("uint256((arg0));"));
}

#[test]
Expand All @@ -346,7 +346,7 @@ mod tests {

assert_eq!(
simplify_casts(&line),
String::from("ecrecover(uint256(arg0), uint256(arg0), uint256((arg0)));")
String::from("ecrecover(uint256((arg0)), uint256((arg0)), uint256(((arg0))));")
); // double parens are expected because we dont simplify_parentheses here
}

Expand Down

0 comments on commit d167b00

Please sign in to comment.