Skip to content

Commit

Permalink
unit: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joshstoik1 committed May 12, 2024
1 parent cc132c0 commit 1e32b18
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/image/zopflipng/symbols.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,20 +94,6 @@ impl DeflateSym {
mod tests {
use super::*;

#[test]
/// # Deflate Symbol Incrementation.
fn t_deflatesym_inc() {
for s in DEFLATE_ORDER.iter().copied() {
if matches!(s, DeflateSym::D18) { assert!(s.inc().is_none()); }
else {
assert_eq!(
s.inc().map(|n| n as u8),
Some((s as u8) + 1),
);
}
}
}

// Note: the original `symbols.h` distance-related methods come in two
// flavors: one leveraging compiler math built-ins and one loaded with
// manual range branching. These tests compare both approaches against the
Expand Down

0 comments on commit 1e32b18

Please sign in to comment.