Sha256: 620bd39a7fd3fc051182dcda2e12bbaa772bfb2a9202c2dfdf3d81c88a2984ac

Contents?: true

Size: 273 Bytes

Versions: 19

Compression:

Stored size: 273 Bytes

Contents

use magnus::Value;

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

    let val = ruby
        .eval::<Value>(r#"["foo".upcase, "bar".to_sym, 1 + 2]"#)
        .unwrap();

    assert_eq!(r#"["FOO", :bar, 3]"#, format!("{:?}", val));
}

Version data entries

19 entries across 19 versions & 1 rubygems

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