Sha256: 8c2a3daf434815389b6bf88837e3f382d74d97250104b925d70779366bd3d537

Contents?: true

Size: 267 Bytes

Versions: 38

Compression:

Stored size: 267 Bytes

Contents

use minimal_lexical::mask;

#[test]
fn lower_n_mask_test() {
    assert_eq!(mask::lower_n_mask(2), 0b11);
}

#[test]
fn lower_n_halfway_test() {
    assert_eq!(mask::lower_n_halfway(2), 0b10);
}

#[test]
fn nth_bit_test() {
    assert_eq!(mask::nth_bit(2), 0b100);
}

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/minimal-lexical-0.2.1/tests/mask_tests.rs
wasmtime-28.0.0 ./ext/cargo-vendor/minimal-lexical-0.2.1/tests/mask_tests.rs
wasmtime-27.0.0 ./ext/cargo-vendor/minimal-lexical-0.2.1/tests/mask_tests.rs
wasmtime-26.0.0 ./ext/cargo-vendor/minimal-lexical-0.2.1/tests/mask_tests.rs
wasmtime-25.0.2 ./ext/cargo-vendor/minimal-lexical-0.2.1/tests/mask_tests.rs
wasmtime-25.0.1 ./ext/cargo-vendor/minimal-lexical-0.2.1/tests/mask_tests.rs
wasmtime-25.0.0 ./ext/cargo-vendor/minimal-lexical-0.2.1/tests/mask_tests.rs
wasmtime-24.0.0 ./ext/cargo-vendor/minimal-lexical-0.2.1/tests/mask_tests.rs
wasmtime-23.0.2 ./ext/cargo-vendor/minimal-lexical-0.2.1/tests/mask_tests.rs
wasmtime-22.0.0 ./ext/cargo-vendor/minimal-lexical-0.2.1/tests/mask_tests.rs
wasmtime-21.0.1 ./ext/cargo-vendor/minimal-lexical-0.2.1/tests/mask_tests.rs
wasmtime-20.0.2 ./ext/cargo-vendor/minimal-lexical-0.2.1/tests/mask_tests.rs
wasmtime-20.0.0 ./ext/cargo-vendor/minimal-lexical-0.2.1/tests/mask_tests.rs
wasmtime-18.0.3 ./ext/cargo-vendor/minimal-lexical-0.2.1/tests/mask_tests.rs
wasmtime-17.0.1 ./ext/cargo-vendor/minimal-lexical-0.2.1/tests/mask_tests.rs
wasmtime-17.0.0 ./ext/cargo-vendor/minimal-lexical-0.2.1/tests/mask_tests.rs
wasmtime-16.0.0 ./ext/cargo-vendor/minimal-lexical-0.2.1/tests/mask_tests.rs
wasmtime-15.0.1 ./ext/cargo-vendor/minimal-lexical-0.2.1/tests/mask_tests.rs
wasmtime-15.0.0 ./ext/cargo-vendor/minimal-lexical-0.2.1/tests/mask_tests.rs
wasmtime-14.0.4 ./ext/cargo-vendor/minimal-lexical-0.2.1/tests/mask_tests.rs