6
6
7
7
object Test {
8
8
9
- /* I add a couple of Unicode identifier tests here temporarily */
9
+ /* I add a couple of Unicode identifier tests here " temporarily" */
10
10
11
11
def \ u03b1\ u03c1\ u03b5\ u03c4\ u03b7 = " alpha rho epsilon tau eta"
12
12
@@ -80,6 +80,9 @@ object Test {
80
80
check_success(" 1e1f == 10.0f" , 1e1f , 10.0f )
81
81
check_success(" .3f == 0.3f" , .3f , 0.3f )
82
82
check_success(" 0f == 0.0f" , 0f , 0.0f )
83
+ check_success(" 0f == -0.000000000000000000e+00f" , 0f , - 0.000000000000000000e+00f )
84
+ check_success(" 0f == -0.000000000000000000e+00F" , 0f , - 0.000000000000000000e+00F )
85
+ check_success(" 0f == -0.0000000000000000e14f" , 0f , - 0.0000000000000000e14f )
83
86
check_success(" 01.23f == 1.23f" , 01.23f , 1.23f )
84
87
check_success(" 3.14f == 3.14f" , 3.14f , 3.14f )
85
88
check_success(" 6.022e23f == 6.022e23f" , 6.022e23f , 6.022e23f )
@@ -96,6 +99,11 @@ object Test {
96
99
check_success(" .3 == 0.3" , .3 , 0.3 )
97
100
check_success(" 0.0 == 0.0" , 0.0 , 0.0 )
98
101
check_success(" 0d == 0.0" , 0d , 0.0 )
102
+ check_success(" 0d == 0.000000000000000000e+00d" , 0d , 0.000000000000000000e+00d )
103
+ check_success(" 0d == -0.000000000000000000e+00d" , 0d , - 0.000000000000000000e+00d )
104
+ check_success(" 0d == -0.000000000000000000e+00D" , 0d , - 0.000000000000000000e+00D )
105
+ check_success(" 0.0 == 0.000000000000000000e+00" , 0.0 , 0.000000000000000000e+00 )
106
+ check_success(" 0.0 == -0.000000000000000000e+00" , 0.0 , - 0.000000000000000000e+00 )
99
107
check_success(" 01.23 == 1.23" , 01.23 , 1.23 )
100
108
check_success(" 01.23d == 1.23d" , 01.23d , 1.23d )
101
109
check_success(" 3.14 == 3.14" , 3.14 , 3.14 )
0 commit comments