Skip to content

Commit

Permalink
More number cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinquaXD committed Apr 20, 2024
1 parent b225965 commit c74132f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ethcontract/src/int.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1326,8 +1326,8 @@ mod tests {

assert_eq!(I256::from(42 as $unsigned).to_string(), "42");
assert_eq!(
I256::from(<$unsigned>::max_value()).to_string(),
<$unsigned>::max_value().to_string(),
I256::from(<$unsigned>::MIN).to_string(),
<$unsigned>::MAX.to_string(),
);

assert!(matches!(<$signed>::try_from(small_positive), Ok(42)));
Expand Down

0 comments on commit c74132f

Please sign in to comment.