mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-08 19:31:14 -03:00
Test division by zero with min
This would actually return any finite argument before!
This commit is contained in:
@@ -169,6 +169,10 @@ printf '<%s>\n' (math 1 % 0 - 5 2>&1)
|
||||
# CHECK: <math: Error: Division by zero>
|
||||
# CHECK: <'1 % 0 - 5'>
|
||||
# CHECK: < ^>
|
||||
printf '<%s>\n' (math min 1 / 0, 5 2>&1)
|
||||
# CHECK: <math: Error: Division by zero>
|
||||
# CHECK: <'min 1 / 0, 5'>
|
||||
# CHECK: < ^>
|
||||
|
||||
# Validate "x" as multiplier
|
||||
math 0x2 # Hex
|
||||
|
||||
Reference in New Issue
Block a user