Sha256: ac18b42cf8d9fb1ffe8a18391869237a90bf1009e9a291bbbf90869fe038881e

Contents?: true

Size: 238 Bytes

Versions: 19

Compression:

Stored size: 238 Bytes

Contents

use magnus::RString;

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

    unsafe {
        let s: RString = ruby.eval("'hello'").unwrap();

        assert_eq!("hello", s.as_str().unwrap());
    }
}

Version data entries

19 entries across 19 versions & 1 rubygems

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