Unit tests for EVM template (#391)

* EVM unit tests

* fmt & clippy

* toml sort

* fix assert_matches & warnings

* fix fmt

* fix clippy
This commit is contained in:
Nikita Khateev
2024-12-23 21:30:13 +04:00
committed by GitHub
parent 76340e96a5
commit f30d5758d7
10 changed files with 828 additions and 0 deletions
@@ -11,8 +11,12 @@ mod constant_tests {
assert_eq!(DOLLARS, 100 * CENTS);
#[cfg(not(feature = "runtime-benchmarks"))]
assert_eq!(EXISTENTIAL_DEPOSIT, 0);
#[cfg(feature = "runtime-benchmarks")]
assert_eq!(EXISTENTIAL_DEPOSIT, 1);
// Ensure deposit function behavior remains constant
assert_eq!(deposit(2, 3), 2 * 15 * CENTS + 3 * 6 * CENTS);
}