mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
tests/expr: add tests in test_expr.rs
This commit is contained in:
parent
0df561e256
commit
7bf4b7f674
1 changed files with 10 additions and 0 deletions
|
@ -128,6 +128,16 @@ fn test_or() {
|
||||||
.args(&["1", "|", "a", "/", "5"])
|
.args(&["1", "|", "a", "/", "5"])
|
||||||
.succeeds()
|
.succeeds()
|
||||||
.stdout_only("1\n");
|
.stdout_only("1\n");
|
||||||
|
|
||||||
|
new_ucmd!()
|
||||||
|
.args(&["foo", "|", "a", "/", "5"])
|
||||||
|
.succeeds()
|
||||||
|
.stdout_only("foo\n");
|
||||||
|
|
||||||
|
new_ucmd!()
|
||||||
|
.args(&["0", "|", "10", "/", "5"])
|
||||||
|
.succeeds()
|
||||||
|
.stdout_only("2\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue