Sha256: 591f6e214c4e790f4bd608fc36e3812e7af11b787e74fabbdc08bb8d6a313c53

Contents?: true

Size: 246 Bytes

Versions: 19

Compression:

Stored size: 246 Bytes

Contents

use magnus::{prelude::*, Value};

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

    unsafe {
        let val: Value = ruby.eval("42").unwrap();

        assert_eq!("Integer", val.classname());
    }
}

Version data entries

19 entries across 19 versions & 1 rubygems

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