Sha256: 3ba63e4ba945826d67799e3650b542fbf1be128530a7ea76904d86fba448b978
Contents?: true
Size: 572 Bytes
Versions: 16
Compression:
Stored size: 572 Bytes
Contents
mod common; #[test] fn test_random() { let (store, instance) = common::create_instance("random.wasm"); let result = common::invoke_func::<(), i32>(store, instance, "random", ()); let expected_random_output = 155; assert_eq!(result, expected_random_output); } #[test] fn test_random_two_invocations() { let (store, instance) = common::create_instance("random.wasm"); let result = common::invoke_func::<(), i32>(store, instance, "random_two_invocations", ()); let expected_random_output = 111; assert_eq!(result, expected_random_output); }
Version data entries
16 entries across 16 versions & 1 rubygems