mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 14:23:09 +00:00
36 lines
702 B
Text
36 lines
702 B
Text
|
|
####################
|
|
# Validate basic expressions
|
|
|
|
####################
|
|
# Validate some rounding functions
|
|
|
|
####################
|
|
# Validate some integral computations
|
|
|
|
####################
|
|
# Validate how variables in an expression are handled
|
|
|
|
####################
|
|
# Validate math error reporting
|
|
math: Error: Too few arguments
|
|
'2 - '
|
|
^
|
|
math: Error: Too few arguments
|
|
'ncr(1)'
|
|
^
|
|
math: Error: Expression is bogus
|
|
'max()'
|
|
^
|
|
math: Error: Too few arguments
|
|
'sin()'
|
|
^
|
|
math: Error: Too many arguments
|
|
'2 + 2 4'
|
|
^
|
|
math: Expected at least 1 args, got only 0
|
|
math: Expected at least 1 args, got only 0
|
|
math: Error: Result is infinite
|
|
'2^999999'
|
|
math: Error: Result is infinite
|
|
'1 / 0'
|