1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

test(expr): Add test for eager evaluation

This commit is contained in:
Dorian Peron 2025-02-22 04:17:36 +01:00 committed by Sylvestre Ledru
parent 2670885b4f
commit 4513b58e59

View file

@ -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");
}