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