mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 19:17:43 +00:00
tests/expr: add tests for test_and
This commit is contained in:
parent
ae1c4ccfd2
commit
40f05a331e
1 changed files with 15 additions and 0 deletions
|
@ -155,6 +155,21 @@ fn test_and() {
|
|||
.args(&["-14", "&", "1"])
|
||||
.run()
|
||||
.stdout_is("-14\n");
|
||||
|
||||
new_ucmd!()
|
||||
.args(&["0", "&", "a", "/", "5"])
|
||||
.run()
|
||||
.stdout_only("0\n");
|
||||
|
||||
new_ucmd!()
|
||||
.args(&["", "&", "a", "/", "5"])
|
||||
.run()
|
||||
.stdout_only("0\n");
|
||||
|
||||
new_ucmd!()
|
||||
.args(&["-1", "&", "10", "/", "5"])
|
||||
.succeeds()
|
||||
.stdout_only("-1\n");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue