Skip to content

Commit

Permalink
Improved tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasavola committed May 10, 2024
1 parent 2f381a7 commit 611ffa4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
[package]
name = "incorrect-exponentiation-vulnerable-1"
version = "0.0.0"
version = "0.1.0"
edition = "2021"

[lib]
crate-type = ["cdylib"]

[dependencies]
soroban-sdk = { workspace = true }

[dev-dependencies]
soroban-sdk = { workspace = true, features = ["testutils"] }

[features]
testutils = ["soroban-sdk/testutils"]
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ mod tests {
env.mock_all_auths();
let _user = <Address as testutils::Address>::generate(&env);

client.set_data(&10_u128);
client.set_data(&3_u128);

assert_eq!(client.exp_data_3(), 9);
assert_ne!(client.exp_data_3(), 27);
}
}

0 comments on commit 611ffa4

Please sign in to comment.