Sha256: b431e6a619f7e55e6a01c53e1871da166529f2fa71643a268c25ea890d556b81

Contents?: true

Size: 328 Bytes

Versions: 19

Compression:

Stored size: 328 Bytes

Contents

#[test]
fn it_converts_integers_to_value() {
    let ruby = unsafe { magnus::embed::init() };

    magnus::rb_assert!(ruby, "val == 0", val = 0u8);

    magnus::rb_assert!(ruby, "val == -1", val = -1i64);

    magnus::rb_assert!(
        ruby,
        "val == 9223372036854775807",
        val = 9223372036854775807i64
    );
}

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/magnus-0.7.1/tests/integer_convert_to_value.rs
wasmtime-28.0.0 ./ext/cargo-vendor/magnus-0.7.1/tests/integer_convert_to_value.rs
wasmtime-27.0.0 ./ext/cargo-vendor/magnus-0.7.1/tests/integer_convert_to_value.rs
wasmtime-26.0.0 ./ext/cargo-vendor/magnus-0.7.1/tests/integer_convert_to_value.rs
wasmtime-25.0.2 ./ext/cargo-vendor/magnus-0.6.4/tests/integer_convert_to_value.rs
wasmtime-25.0.1 ./ext/cargo-vendor/magnus-0.6.4/tests/integer_convert_to_value.rs
wasmtime-25.0.0 ./ext/cargo-vendor/magnus-0.6.4/tests/integer_convert_to_value.rs
wasmtime-24.0.0 ./ext/cargo-vendor/magnus-0.6.4/tests/integer_convert_to_value.rs
wasmtime-23.0.2 ./ext/cargo-vendor/magnus-0.6.4/tests/integer_convert_to_value.rs
wasmtime-22.0.0 ./ext/cargo-vendor/magnus-0.6.4/tests/integer_convert_to_value.rs
wasmtime-21.0.1 ./ext/cargo-vendor/magnus-0.6.4/tests/integer_convert_to_value.rs
wasmtime-20.0.2 ./ext/cargo-vendor/magnus-0.6.4/tests/integer_convert_to_value.rs
wasmtime-20.0.0 ./ext/cargo-vendor/magnus-0.6.4/tests/integer_convert_to_value.rs
wasmtime-18.0.3 ./ext/cargo-vendor/magnus-0.6.2/tests/integer_convert_to_value.rs
wasmtime-17.0.1 ./ext/cargo-vendor/magnus-0.6.2/tests/integer_convert_to_value.rs
wasmtime-17.0.0 ./ext/cargo-vendor/magnus-0.6.2/tests/integer_convert_to_value.rs
wasmtime-16.0.0 ./ext/cargo-vendor/magnus-0.6.2/tests/integer_convert_to_value.rs
wasmtime-15.0.1 ./ext/cargo-vendor/magnus-0.6.2/tests/integer_convert_to_value.rs
wasmtime-15.0.0 ./ext/cargo-vendor/magnus-0.6.2/tests/integer_convert_to_value.rs