Sha256: 21427a640e833d7387ddd147a0901c35bb39b0ae4ef2bcaaef9358c56794182c

Contents?: true

Size: 410 Bytes

Versions: 19

Compression:

Stored size: 410 Bytes

Contents

#[test]
fn it_converts_floats_to_value() {
    let ruby = unsafe { magnus::embed::init() };
    magnus::rb_assert!(ruby, "val == 0.5", val = 0.5);

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

    magnus::rb_assert!(ruby, "val == Float::INFINITY", val = f64::INFINITY);

    magnus::rb_assert!(ruby, "val.nan?", val = f64::NAN);
}

Version data entries

19 entries across 19 versions & 1 rubygems

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