Skip to content

Commit 8c2815b

Browse files
committed
Update tests
1 parent 19e8b1d commit 8c2815b

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎tests/unit/out/refcount/types.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ fn main_0() -> i32 {
4646
assert!((dmax < -1e+308_f64));
4747
let mut big: f64 = f64::INFINITY;
4848
assert!((big > 1.7976931348623157e+308_f64));
49+
let mut fbig: f32 = f32::INFINITY;
50+
assert!((fbig > 3.4028235e+38_f32));
4951
assert!(((((xwc + (xc8 as i32)) + (xc16 as i32)) as u32).wrapping_add(xc32) == 266_u32));
5052
assert!((AnyPtr::default()).is_null());
5153
return 0;

‎tests/unit/out/unsafe/types.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ unsafe fn main_0() -> i32 {
4848
assert!(((dmax) < (-1e+308_f64)));
4949
let mut big: f64 = f64::INFINITY;
5050
assert!(((big) > (1.7976931348623157e+308_f64)));
51+
let mut fbig: f32 = f32::INFINITY;
52+
assert!(((fbig) > (3.4028235e+38_f32)));
5153
assert!(((((((xwc) + (xc8 as i32)) + (xc16 as i32)) as u32).wrapping_add(xc32)) == (266_u32)));
5254
assert!((std::ptr::null_mut::<::libc::c_void>()).is_null());
5355
return 0;

‎tests/unit/types.cpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ int main() {
3232
assert(dmax < -1e308);
3333
long double big = 1e400L;
3434
assert(big > DBL_MAX);
35+
float fbig = 1e40f;
36+
assert(fbig > FLT_MAX);
3537
assert(xwc + xc8 + xc16 + xc32 == 266);
3638
assert(xnp == nullptr);
3739
return 0;

0 commit comments

Comments
 (0)