File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ send = []
44
44
[dependencies ]
45
45
bstr = { version = " 0.2" , features = [" std" ], default_features = false }
46
46
lazy_static = { version = " 1.4" }
47
- num-traits = { version = " 0.2.11 " }
47
+ num-traits = { version = " 0.2.14 " }
48
48
futures-core = { version = " 0.3.5" , optional = true }
49
49
futures-task = { version = " 0.3.5" , optional = true }
50
50
futures-util = { version = " 0.3.5" , optional = true }
Original file line number Diff line number Diff line change @@ -509,7 +509,9 @@ fn test_num_conversion() -> Result<()> {
509
509
assert ! ( lua. load( "math.huge" ) . eval:: <i64 >( ) . is_err( ) ) ;
510
510
511
511
assert_eq ! ( lua. unpack:: <f64 >( lua. pack( f32 :: MAX ) ?) ?, f32 :: MAX as f64 ) ;
512
- assert ! ( lua. unpack:: <f32 >( lua. pack( f64 :: MAX ) ?) . is_err( ) ) ;
512
+ assert_eq ! ( lua. unpack:: <f64 >( lua. pack( f32 :: MIN ) ?) ?, f32 :: MIN as f64 ) ;
513
+ assert_eq ! ( lua. unpack:: <f32 >( lua. pack( f64 :: MAX ) ?) ?, f32 :: INFINITY ) ;
514
+ assert_eq ! ( lua. unpack:: <f32 >( lua. pack( f64 :: MIN ) ?) ?, f32 :: NEG_INFINITY ) ;
513
515
514
516
assert_eq ! ( lua. unpack:: <i128 >( lua. pack( 1i128 << 64 ) ?) ?, 1i128 << 64 ) ;
515
517
You can’t perform that action at this time.
0 commit comments