mirror of
https://github.com/nushell/nushell
synced 2025-01-15 14:44:14 +00:00
16 lines
331 B
Rust
16 lines
331 B
Rust
use crate::tests::{fail_test, run_test, TestResult};
|
|
|
|
#[test]
|
|
fn bits_and() -> TestResult {
|
|
run_test("2 | bits and 4", "0")
|
|
}
|
|
|
|
#[test]
|
|
fn bits_and_negative() -> TestResult {
|
|
run_test("-3 | bits and 5", "5")
|
|
}
|
|
|
|
#[test]
|
|
fn bits_and_list() -> TestResult {
|
|
run_test("[1 2 3 8 9 10] | bits and 2 | str collect", "022002")
|
|
}
|