()
| 330 | |
| 331 | #[test] |
| 332 | fn empty_block() { |
| 333 | let block = PostingBlock::from_postings(&[]); |
| 334 | assert!(block.is_empty()); |
| 335 | let bytes = block.to_bytes(); |
| 336 | let restored = PostingBlock::from_bytes(&bytes).unwrap(); |
| 337 | assert!(restored.is_empty()); |
| 338 | } |
| 339 | |
| 340 | #[test] |
| 341 | fn fieldnorm_encode_decode() { |