Macro sewup_derive::ewasm_assert_eq [−][src]
ewasm_assert_eq!() { /* proc-macro */ }
Expand description
helps you assert output from the handle of a contract with Vec<u8>
.
ⓘ
#[ewasm_test]
mod tests {
use super::*;
#[ewasm_test]
fn test_execute_basic_operations() {
ewasm_assert_eq!(handler_fn(), vec![74, 111, 118, 121]);
}
}
Besides, you can run the handler as a block chan user with by
syntax
ⓘ
ewasm_assert_eq!(handler_fn() by "eD5897cCEa7aee785D31cdcA87Cf59D1D041aAFC", vec![74, 111, 118, 121]);