Sha256: 7667b9294a4195eb2efcaa9db68d9e43d1500b803757a8a2e6c3f0f638c0b328

Contents?: true

Size: 292 Bytes

Versions: 19

Compression:

Stored size: 292 Bytes

Contents

use magnus::RString;

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

    let s = RString::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-14.0.4 ./ext/cargo-vendor/magnus-0.5.5/tests/codepoints.rs
wasmtime-14.0.3 ./ext/cargo-vendor/magnus-0.5.5/tests/codepoints.rs
wasmtime-14.0.1 ./ext/cargo-vendor/magnus-0.5.5/tests/codepoints.rs
wasmtime-14.0.0 ./ext/cargo-vendor/magnus-0.5.5/tests/codepoints.rs
wasmtime-13.0.0 ./ext/cargo-vendor/magnus-0.5.5/tests/codepoints.rs
wasmtime-12.0.1 ./ext/cargo-vendor/magnus-0.5.5/tests/codepoints.rs
wasmtime-12.0.0 ./ext/cargo-vendor/magnus-0.5.5/tests/codepoints.rs
wasmtime-11.0.0 ./ext/cargo-vendor/magnus-0.5.5/tests/codepoints.rs
wasmtime-10.0.1 ./ext/cargo-vendor/magnus-0.5.5/tests/codepoints.rs
wasmtime-10.0.0 ./ext/cargo-vendor/magnus-0.5.5/tests/codepoints.rs
wasmtime-9.0.4 ./ext/cargo-vendor/magnus-0.5.5/tests/codepoints.rs
wasmtime-9.0.1 ./ext/cargo-vendor/magnus-0.5.3/tests/codepoints.rs
wasmtime-8.0.0 ./ext/cargo-vendor/magnus-0.5.3/tests/codepoints.rs
wasmtime-7.0.0 ./ext/cargo-vendor/magnus-0.5.2/tests/codepoints.rs
wasmtime-6.0.1 ./ext/cargo-vendor/magnus-0.5.1/tests/codepoints.rs
wasmtime-6.0.0 ./ext/cargo-vendor/magnus-0.5.1/tests/codepoints.rs
wasmtime-5.0.0 ./ext/cargo-vendor/magnus-0.4.4/tests/codepoints.rs
wasmtime-0.4.1 ./ext/cargo-vendor/magnus-0.4.4/tests/codepoints.rs
wasmtime-0.4.0 ./ext/cargo-vendor/magnus-0.4.3/tests/codepoints.rs