mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
test(expr): Add test for eager evaluation
This commit is contained in:
parent
2670885b4f
commit
4513b58e59
1 changed files with 8 additions and 0 deletions
|
@ -370,3 +370,11 @@ fn test_num_str_comparison() {
|
||||||
.succeeds()
|
.succeeds()
|
||||||
.stdout_is("1\n");
|
.stdout_is("1\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_eager_evaluation() {
|
||||||
|
new_ucmd!()
|
||||||
|
.args(&["(", "1", "/", "0"])
|
||||||
|
.fails()
|
||||||
|
.stderr_contains("division by zero");
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue