@@ -45,9 +45,8 @@ fn range_to_inclusive() {
45
45
// FIXME(f16_f128): remove gate when ABI issues are resolved
46
46
#[ cfg( all( target_arch = "aarch64" , target_os = "linux" ) ) ]
47
47
{
48
- // FIXME(f16_f128): enable infinity tests when constants are available
49
- // assert!(yes!(f16::NEG_INFINITY, ..=f16::NEG_INFINITY));
50
- // assert!(yes!(f16::NEG_INFINITY, ..=1.0f16));
48
+ assert ! ( yes!( f16:: NEG_INFINITY , ..=f16:: NEG_INFINITY ) ) ;
49
+ assert ! ( yes!( f16:: NEG_INFINITY , ..=1.0f16 ) ) ;
51
50
assert ! ( yes!( 1.5f16 , ..=1.5f16 ) ) ;
52
51
assert ! ( !yes!( 1.6f16 , ..=-1.5f16 ) ) ;
53
52
}
@@ -68,9 +67,8 @@ fn range_to_inclusive() {
68
67
// FIXME(f16_f128): remove gate when ABI issues are resolved
69
68
#[ cfg( all( target_arch = "aarch64" , target_os = "linux" ) ) ]
70
69
{
71
- // FIXME(f16_f128): enable infinity tests when constants are available
72
- // assert!(yes!(f128::NEG_INFINITY, ..=f128::NEG_INFINITY));
73
- // assert!(yes!(f128::NEG_INFINITY, ..=1.0f128));
70
+ assert ! ( yes!( f128:: NEG_INFINITY , ..=f128:: NEG_INFINITY ) ) ;
71
+ assert ! ( yes!( f128:: NEG_INFINITY , ..=1.0f128 ) ) ;
74
72
assert ! ( yes!( 1.5f128 , ..=1.5f128 ) ) ;
75
73
assert ! ( !yes!( 1.6f128 , ..=-1.5f128 ) ) ;
76
74
}
@@ -111,8 +109,7 @@ fn range_to() {
111
109
// FIXME(f16_f128): remove gate when ABI issues are resolved
112
110
#[ cfg( all( target_arch = "aarch64" , target_os = "linux" ) ) ]
113
111
{
114
- // FIXME(f16_f128): enable infinity tests when constants are available
115
- // assert!(yes!(f16::NEG_INFINITY, ..1.0f16));
112
+ assert ! ( yes!( f16:: NEG_INFINITY , ..1.0f16 ) ) ;
116
113
assert ! ( !yes!( 1.5f16 , ..1.5f16 ) ) ;
117
114
const E16 : f16 = 1.5f16 + f16:: EPSILON ;
118
115
assert ! ( yes!( 1.5f16 , ..E16 ) ) ;
@@ -137,8 +134,7 @@ fn range_to() {
137
134
// FIXME(f16_f128): remove gate when ABI issues are resolved
138
135
#[ cfg( all( target_arch = "aarch64" , target_os = "linux" ) ) ]
139
136
{
140
- // FIXME(f16_f128): enable infinity tests when constants are available
141
- // assert!(yes!(f128::NEG_INFINITY, ..1.0f128));
137
+ assert ! ( yes!( f128:: NEG_INFINITY , ..1.0f128 ) ) ;
142
138
assert ! ( !yes!( 1.5f128 , ..1.5f128 ) ) ;
143
139
const E128 : f128 = 1.5f128 + f128:: EPSILON ;
144
140
assert ! ( yes!( 1.5f128 , ..E128 ) ) ;
@@ -181,15 +177,14 @@ fn range_from() {
181
177
// FIXME(f16_f128): remove gate when ABI issues are resolved
182
178
#[ cfg( all( target_arch = "aarch64" , target_os = "linux" ) ) ]
183
179
{
184
- // FIXME(f16_f128): enable infinity tests when constants are available
185
- // assert!(yes!(f16::NEG_INFINITY, f16::NEG_INFINITY..));
186
- // assert!(yes!(f16::INFINITY, f16::NEG_INFINITY..));
187
- // assert!(!yes!(f16::NEG_INFINITY, 1.0f16..));
188
- // assert!(yes!(f16::INFINITY, 1.0f16..));
180
+ assert ! ( yes!( f16:: NEG_INFINITY , f16:: NEG_INFINITY ..) ) ;
181
+ assert ! ( yes!( f16:: INFINITY , f16:: NEG_INFINITY ..) ) ;
182
+ assert ! ( !yes!( f16:: NEG_INFINITY , 1.0f16 ..) ) ;
183
+ assert ! ( yes!( f16:: INFINITY , 1.0f16 ..) ) ;
189
184
assert ! ( !yes!( 1.0f16 - f16:: EPSILON , 1.0f16 ..) ) ;
190
185
assert ! ( yes!( 1.0f16 , 1.0f16 ..) ) ;
191
- // assert!(yes!(f16::INFINITY, 1.0f16..));
192
- // assert!(yes!(f16::INFINITY, f16::INFINITY..));
186
+ assert ! ( yes!( f16:: INFINITY , 1.0f16 ..) ) ;
187
+ assert ! ( yes!( f16:: INFINITY , f16:: INFINITY ..) ) ;
193
188
}
194
189
195
190
// f32; `X..`
@@ -216,15 +211,14 @@ fn range_from() {
216
211
// FIXME(f16_f128): remove gate when ABI issues are resolved
217
212
#[ cfg( all( target_arch = "aarch64" , target_os = "linux" ) ) ]
218
213
{
219
- // FIXME(f16_f128): enable infinity tests when constants are available
220
- // assert!(yes!(f128::NEG_INFINITY, f128::NEG_INFINITY..));
221
- // assert!(yes!(f128::INFINITY, f128::NEG_INFINITY..));
222
- // assert!(!yes!(f128::NEG_INFINITY, 1.0f128..));
223
- // assert!(yes!(f128::INFINITY, 1.0f128..));
214
+ assert ! ( yes!( f128:: NEG_INFINITY , f128:: NEG_INFINITY ..) ) ;
215
+ assert ! ( yes!( f128:: INFINITY , f128:: NEG_INFINITY ..) ) ;
216
+ assert ! ( !yes!( f128:: NEG_INFINITY , 1.0f128 ..) ) ;
217
+ assert ! ( yes!( f128:: INFINITY , 1.0f128 ..) ) ;
224
218
assert ! ( !yes!( 1.0f128 - f128:: EPSILON , 1.0f128 ..) ) ;
225
219
assert ! ( yes!( 1.0f128 , 1.0f128 ..) ) ;
226
- // assert!(yes!(f128::INFINITY, 1.0f128..));
227
- // assert!(yes!(f128::INFINITY, f128::INFINITY..));
220
+ assert ! ( yes!( f128:: INFINITY , 1.0f128 ..) ) ;
221
+ assert ! ( yes!( f128:: INFINITY , f128:: INFINITY ..) ) ;
228
222
}
229
223
}
230
224
0 commit comments