File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -241,14 +241,14 @@ impl RangeProof {
241241#[ test]
242242fn test_is_in_range ( ) {
243243 assert ! ( Range :: Bits8 . is_in_range( 0 ) ) ;
244- assert ! ( Range :: Bits8 . is_in_range( 255 ) ) ;
245- assert ! ( !Range :: Bits8 . is_in_range( 256 ) ) ;
244+ assert ! ( Range :: Bits8 . is_in_range( u8 :: MAX as u64 ) ) ;
245+ assert ! ( !Range :: Bits8 . is_in_range( 1 << 8 ) ) ;
246246 assert ! ( Range :: Bits16 . is_in_range( 0 ) ) ;
247- assert ! ( Range :: Bits16 . is_in_range( 65535 ) ) ;
248- assert ! ( !Range :: Bits16 . is_in_range( 65536 ) ) ;
247+ assert ! ( Range :: Bits16 . is_in_range( u16 :: MAX as u64 ) ) ;
248+ assert ! ( !Range :: Bits16 . is_in_range( 1 << 16 ) ) ;
249249 assert ! ( Range :: Bits32 . is_in_range( 0 ) ) ;
250- assert ! ( Range :: Bits32 . is_in_range( 4294967295 ) ) ;
251- assert ! ( !Range :: Bits32 . is_in_range( 4294967296 ) ) ;
250+ assert ! ( Range :: Bits32 . is_in_range( u32 :: MAX as u64 ) ) ;
251+ assert ! ( !Range :: Bits32 . is_in_range( 1 << 32 ) ) ;
252252 assert ! ( Range :: Bits64 . is_in_range( 0 ) ) ;
253253 assert ! ( Range :: Bits64 . is_in_range( u64 :: MAX ) ) ;
254254}
You can’t perform that action at this time.
0 commit comments