use crate::error::{LazippyError, LazippyResult};
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Match {
pub length: u32,
pub distance: u32,
}
pub fn decode_match(_input: &[u8], _pos: &mut usize) -> LazippyResult<Match> {
Err(LazippyError::NotYetImplemented)
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn decode_match_is_stub() {
let mut pos = 0usize;
let result = decode_match(&[], &mut pos);
assert!(
matches!(result, Err(LazippyError::NotYetImplemented)),
"expected NotYetImplemented, got {result:?}"
);
}
}