mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 22:50:14 +02:00
Add bit operator: bit-xor
(#5940)
This commit is contained in:
@ -55,6 +55,16 @@ fn or() -> TestResult {
|
||||
run_test("true || false", "true")
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn bit_xor() -> TestResult {
|
||||
run_test("4 bit-xor 4", "0")
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn bit_xor_add() -> TestResult {
|
||||
run_test("4 bit-xor 2 + 2", "0")
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn bit_and() -> TestResult {
|
||||
run_test("2 bit-and 4", "0")
|
||||
|
Reference in New Issue
Block a user