mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 05:43:11 +00:00
Test division by zero with min
This would actually return any finite argument before!
This commit is contained in:
parent
24fd26ae6e
commit
bc1a5ba033
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue