2017-08-24 11:38:40 +08:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Validate basic expressions
|
2018-07-24 15:00:06 +08:00
|
|
|
1.5
|
|
|
|
1.666667
|
2018-10-21 18:20:18 +08:00
|
|
|
1
|
2016-05-03 11:53:48 +08:00
|
|
|
1
|
2017-08-24 08:32:49 +08:00
|
|
|
1.667
|
2016-05-03 11:53:48 +08:00
|
|
|
4
|
|
|
|
4
|
|
|
|
2
|
2018-07-24 15:00:06 +08:00
|
|
|
0.5
|
2017-08-24 08:32:49 +08:00
|
|
|
49
|
2017-07-15 07:03:31 +08:00
|
|
|
0
|
|
|
|
4
|
|
|
|
-10
|
|
|
|
-2
|
|
|
|
-8
|
2017-08-24 11:38:40 +08:00
|
|
|
|
2018-12-02 05:25:00 +08:00
|
|
|
####################
|
|
|
|
# Validate some rounding functions
|
|
|
|
2
|
|
|
|
1
|
|
|
|
2
|
|
|
|
-2
|
|
|
|
-2
|
|
|
|
-1
|
|
|
|
|
2018-07-24 15:00:06 +08:00
|
|
|
####################
|
|
|
|
# Validate some integral computations
|
|
|
|
1
|
|
|
|
10
|
|
|
|
100
|
|
|
|
1000
|
|
|
|
1000000000000000
|
|
|
|
100000000000000
|
|
|
|
-1000000000000000
|
|
|
|
0
|
2018-10-21 18:20:18 +08:00
|
|
|
1
|
2018-07-24 15:00:06 +08:00
|
|
|
500000000000000
|
|
|
|
|
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-08-24 11:38:40 +08:00
|
|
|
1
|
|
|
|
2
|
|
|
|
-4.5
|
2018-07-24 15:00:06 +08:00
|
|
|
-4
|
2017-11-25 15:04:44 +08:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Validate math error reporting
|