()
| 962 | |
| 963 | #[test] |
| 964 | fn test_target_conversion() { |
| 965 | for (_, _, bits, _) in DIFFICULTY_ADJUSTMENTS { |
| 966 | let compact_target = bits_to_target(bits); |
| 967 | let nbits = target_to_bits(&compact_target); |
| 968 | assert_eq!(nbits, bits); |
| 969 | } |
| 970 | } |
| 971 | |
| 972 | #[test] |
| 973 | fn test_bits_to_target() { |
nothing calls this directly
no test coverage detected