Sha256: 47a5ecd6444c20fc1e6f1d1970a38a1165ed35bbe90ceca0a91e925e6c885c7f

Contents?: true

Size: 266 Bytes

Versions: 19

Compression:

Stored size: 266 Bytes

Contents

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

    let s = ruby.str_new("foo");
    s.cat([128]); // invalid
    s.cat("bar");

    let count = unsafe { s.codepoints().count() };

    // f, o, o, Err = 4
    assert_eq!(count, 4);
}

Version data entries

19 entries across 19 versions & 1 rubygems

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