From bc1a5ba0337c536583a0b6d0a18aec345bc98244 Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Thu, 8 Sep 2022 21:32:09 +0200 Subject: [PATCH] Test division by zero with min This would actually return any finite argument before! --- tests/checks/math.fish | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/checks/math.fish b/tests/checks/math.fish index 34d5ac0af..066a4a837 100644 --- a/tests/checks/math.fish +++ b/tests/checks/math.fish @@ -169,6 +169,10 @@ printf '<%s>\n' (math 1 % 0 - 5 2>&1) # CHECK: # CHECK: <'1 % 0 - 5'> # CHECK: < ^> +printf '<%s>\n' (math min 1 / 0, 5 2>&1) +# CHECK: +# CHECK: <'min 1 / 0, 5'> +# CHECK: < ^> # Validate "x" as multiplier math 0x2 # Hex