Sha256: e15d13d3e1040640922f7a18870581f4449c76af90e40873076f47653542e5b2
Contents?: true
Size: 1.1 KB
Versions: 16
Compression:
Stored size: 1.1 KB
Contents
mod common; #[test] fn test_realtime_clock() { let (store, instance) = common::create_instance("clocks.wasm"); let result = common::invoke_func::<(), u64>(store, instance, "realtime", ()); let expected_clock_output = 0; assert_eq!(result, expected_clock_output); } #[test] fn test_realtime_clock_seq_calls() { let (store, instance) = common::create_instance("clocks.wasm"); let result = common::invoke_func::<(), u64>(store, instance, "realtime_seq_calls", ()); let expected_clock_diff = 0; assert_eq!(result, expected_clock_diff); } #[test] fn test_monotonic_clock() { let (store, instance) = common::create_instance("clocks.wasm"); let result = common::invoke_func::<(), u64>(store, instance, "monotonic", ()); let expected_clock_output = 0; assert_eq!(result, expected_clock_output); } #[test] fn test_monotonic_clock_seq_calls() { let (store, instance) = common::create_instance("clocks.wasm"); let result = common::invoke_func::<(), u64>(store, instance, "monotonic_seq_calls", ()); let expected_clock_diff = 0; assert_eq!(result, expected_clock_diff); }
Version data entries
16 entries across 16 versions & 1 rubygems