test(expr): Add test for eager evaluation

This commit is contained in:
Dorian Peron
2025-02-23 16:22:06 +01:00
committed by Sylvestre Ledru
parent 2670885b4f
commit 4513b58e59
+8
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");
}