File tree Expand file tree Collapse file tree 4 files changed +20
-0
lines changed
Expand file tree Collapse file tree 4 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -540,6 +540,11 @@ mod tests {
540540 use super :: * ;
541541 use crate :: { from_slice, to_vec} ;
542542
543+ #[ test]
544+ fn size_of_works ( ) {
545+ assert_eq ! ( std:: mem:: size_of:: <Uint128 >( ) , 16 ) ;
546+ }
547+
543548 #[ test]
544549 fn uint128_zero_works ( ) {
545550 let zero = Uint128 :: zero ( ) ;
Original file line number Diff line number Diff line change @@ -668,6 +668,11 @@ mod tests {
668668 use super :: * ;
669669 use crate :: { from_slice, to_vec} ;
670670
671+ #[ test]
672+ fn size_of_works ( ) {
673+ assert_eq ! ( std:: mem:: size_of:: <Uint256 >( ) , 32 ) ;
674+ }
675+
671676 #[ test]
672677 fn uint256_new_works ( ) {
673678 let num = Uint256 :: new ( [ 1 ; 32 ] ) ;
Original file line number Diff line number Diff line change @@ -623,6 +623,11 @@ mod tests {
623623 use super :: * ;
624624 use crate :: { from_slice, to_vec} ;
625625
626+ #[ test]
627+ fn size_of_works ( ) {
628+ assert_eq ! ( std:: mem:: size_of:: <Uint512 >( ) , 64 ) ;
629+ }
630+
626631 #[ test]
627632 fn uint512_new_works ( ) {
628633 let num = Uint512 :: new ( [ 1 ; 64 ] ) ;
Original file line number Diff line number Diff line change @@ -494,6 +494,11 @@ mod tests {
494494 use super :: * ;
495495 use crate :: { from_slice, to_vec} ;
496496
497+ #[ test]
498+ fn size_of_works ( ) {
499+ assert_eq ! ( std:: mem:: size_of:: <Uint64 >( ) , 8 ) ;
500+ }
501+
497502 #[ test]
498503 fn uint64_zero_works ( ) {
499504 let zero = Uint64 :: zero ( ) ;
You can’t perform that action at this time.
0 commit comments