We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13915dd commit 6865374Copy full SHA for 6865374
1 file changed
bindings/rust/evmc-sys/src/lib.rs
@@ -35,3 +35,19 @@ impl Default for evmc_bytes32 {
35
evmc_bytes32 { bytes: [0u8; 32] }
36
}
37
38
+
39
+#[cfg(test)]
40
+mod tests {
41
+ use std::mem::size_of;
42
43
+ use super::*;
44
45
+ #[test]
46
+ fn container_new() {
47
+ // TODO: add other checks from test/unittests/test_helpers.cpp
48
+ assert_eq!(size_of::<evmc_bytes32>(), 32);
49
+ assert_eq!(size_of::<evmc_address>(), 20);
50
+ assert!(size_of::<evmc_result>() <= 128);
51
+ assert!(size_of::<evmc_vm>() <= 64);
52
+ }
53
+}
0 commit comments