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

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/deterministic-wasi-ctx-0.1.29/tests/clocks.rs
wasmtime-28.0.0 ./ext/cargo-vendor/deterministic-wasi-ctx-0.1.28/tests/clocks.rs
wasmtime-27.0.0 ./ext/cargo-vendor/deterministic-wasi-ctx-0.1.27/tests/clocks.rs
wasmtime-26.0.0 ./ext/cargo-vendor/deterministic-wasi-ctx-0.1.26/tests/clocks.rs
wasmtime-25.0.2 ./ext/cargo-vendor/deterministic-wasi-ctx-0.1.25/tests/clocks.rs
wasmtime-25.0.1 ./ext/cargo-vendor/deterministic-wasi-ctx-0.1.25/tests/clocks.rs
wasmtime-25.0.0 ./ext/cargo-vendor/deterministic-wasi-ctx-0.1.25/tests/clocks.rs
wasmtime-24.0.0 ./ext/cargo-vendor/deterministic-wasi-ctx-0.1.24/tests/clocks.rs
wasmtime-23.0.2 ./ext/cargo-vendor/deterministic-wasi-ctx-0.1.23/tests/clocks.rs
wasmtime-22.0.0 ./ext/cargo-vendor/deterministic-wasi-ctx-0.1.22/tests/clocks.rs
wasmtime-21.0.1 ./ext/cargo-vendor/deterministic-wasi-ctx-0.1.22/tests/clocks.rs
wasmtime-20.0.2 ./ext/cargo-vendor/deterministic-wasi-ctx-0.1.21/tests/clocks.rs
wasmtime-20.0.0 ./ext/cargo-vendor/deterministic-wasi-ctx-0.1.21/tests/clocks.rs
wasmtime-18.0.3 ./ext/cargo-vendor/deterministic-wasi-ctx-0.1.19/tests/clocks.rs
wasmtime-17.0.1 ./ext/cargo-vendor/deterministic-wasi-ctx-0.1.18/tests/clocks.rs
wasmtime-17.0.0 ./ext/cargo-vendor/deterministic-wasi-ctx-0.1.18/tests/clocks.rs