()
| 371 | |
| 372 | #[test] |
| 373 | fn header_incompatible_major() { |
| 374 | let mut bytes = SegmentHeader::current().to_bytes(); |
| 375 | bytes[4] = VERSION_MAJOR + 1; // Future major version. |
| 376 | assert!(matches!( |
| 377 | SegmentHeader::from_bytes(&bytes), |
| 378 | Err(crate::error::ColumnarError::IncompatibleVersion { .. }) |
| 379 | )); |
| 380 | } |
| 381 | |
| 382 | #[test] |
| 383 | fn header_compatible_minor() { |