diff --git a/bindings/rust/evmc-sys/src/lib.rs b/bindings/rust/evmc-sys/src/lib.rs index bff096de2..edaa9568d 100644 --- a/bindings/rust/evmc-sys/src/lib.rs +++ b/bindings/rust/evmc-sys/src/lib.rs @@ -35,3 +35,19 @@ impl Default for evmc_bytes32 { evmc_bytes32 { bytes: [0u8; 32] } } } + +#[cfg(test)] +mod tests { + use std::mem::size_of; + + use super::*; + + #[test] + fn container_new() { + // TODO: add other checks from test/unittests/test_helpers.cpp + assert_eq!(size_of::(), 32); + assert_eq!(size_of::(), 20); + assert!(size_of::() <= 128); + assert!(size_of::() <= 64); + } +}