2017-08-23 20:38:40 -07:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Validate basic expressions
|
|
|
|
|
2018-12-01 13:25:00 -08:00
|
|
|
####################
|
|
|
|
# Validate some rounding functions
|
|
|
|
|
2018-07-24 00:00:06 -07:00
|
|
|
####################
|
|
|
|
# Validate some integral computations
|
|
|
|
|
2017-08-23 20:38:40 -07:00
|
|
|
####################
|
2017-12-17 12:31:39 -08:00
|
|
|
# Validate how variables in an expression are handled
|
2017-11-24 23:04:44 -08:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Validate math error reporting
|
2018-02-26 13:46:01 +01:00
|
|
|
math: Error: Too few arguments
|
2018-02-26 11:25:35 +01:00
|
|
|
'2 - '
|
|
|
|
^
|
|
|
|
math: Error: Too few arguments
|
|
|
|
'ncr(1)'
|
|
|
|
^
|
|
|
|
math: Error: Expression is bogus
|
|
|
|
'max()'
|
|
|
|
^
|
|
|
|
math: Error: Too few arguments
|
|
|
|
'sin()'
|
|
|
|
^
|
2018-02-26 14:00:29 +01:00
|
|
|
math: Error: Too many arguments
|
|
|
|
'2 + 2 4'
|
|
|
|
^
|
2018-03-01 22:27:24 +01:00
|
|
|
math: Expected at least 1 args, got only 0
|
|
|
|
math: Expected at least 1 args, got only 0
|
2018-07-24 00:00:06 -07:00
|
|
|
math: Error: Result is infinite
|
|
|
|
'2^999999'
|
2018-03-07 18:13:26 +01:00
|
|
|
math: Error: Result is infinite
|
|
|
|
'1 / 0'
|