mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
test(expr): Add test for eager evaluation
This commit is contained in:
committed by
Sylvestre Ledru
parent
2670885b4f
commit
4513b58e59
@@ -370,3 +370,11 @@ fn test_num_str_comparison() {
|
||||
.succeeds()
|
||||
.stdout_is("1\n");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_eager_evaluation() {
|
||||
new_ucmd!()
|
||||
.args(&["(", "1", "/", "0"])
|
||||
.fails()
|
||||
.stderr_contains("division by zero");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user