mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 22:03:12 +00:00
d1ca392393
It's always a bit annoying that `*` requires quoting. So we allow "x" as an alternative, only it needs to be followed by whitespace to distinguish it from "0x" hexadecimal notation.
58 lines
536 B
Text
58 lines
536 B
Text
|
|
####################
|
|
# Validate basic expressions
|
|
1.5
|
|
1.666667
|
|
1
|
|
1
|
|
1.667
|
|
4
|
|
4
|
|
2
|
|
0.5
|
|
1.666666666666667
|
|
49
|
|
0
|
|
4
|
|
-10
|
|
-2
|
|
-8
|
|
|
|
####################
|
|
# Validate some rounding functions
|
|
2
|
|
1
|
|
2
|
|
-2
|
|
-2
|
|
-1
|
|
|
|
####################
|
|
# Validate some integral computations
|
|
1
|
|
10
|
|
100
|
|
1000
|
|
1000000000000000
|
|
100000000000000
|
|
-1000000000000000
|
|
0
|
|
1
|
|
500000000000000
|
|
|
|
####################
|
|
# Validate how variables in an expression are handled
|
|
1
|
|
2
|
|
-4.5
|
|
-4
|
|
|
|
####################
|
|
# Validate math error reporting
|
|
|
|
####################
|
|
# Validate x as multiplier
|
|
2
|
|
20
|
|
8
|
|
0
|