mirror of
https://github.com/nushell/nushell
synced 2024-12-27 21:43:09 +00:00
17 lines
331 B
Rust
17 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")
|
||
|
}
|