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