()
| 860 | |
| 861 | #[test] |
| 862 | fn test_15_block_hash_calculation() { |
| 863 | let block_headers = BLOCK_HEADERS |
| 864 | .iter() |
| 865 | .map(|header| CircuitBlockHeader::try_from_slice(header).unwrap()) |
| 866 | .collect::<Vec<CircuitBlockHeader>>(); |
| 867 | |
| 868 | for i in 0..block_headers.len() - 1 { |
| 869 | let block_hash = block_headers[i].compute_block_hash(); |
| 870 | let next_block = &block_headers[i + 1]; |
| 871 | assert_eq!(block_hash, next_block.prev_block_hash); |
| 872 | } |
| 873 | } |
| 874 | |
| 875 | #[test] |
| 876 | fn test_median() { |
nothing calls this directly
no test coverage detected