Skip to content

Commit

Permalink
fix: EntryData size test passes on 32-bit (#197)
Browse files Browse the repository at this point in the history
EntryData doesn't need to be exactly 80 to test memory consumption, just
less than it.
  • Loading branch information
cinerea0 committed Dec 11, 2023
1 parent 491b558 commit 9123ee7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/traverse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,10 @@ mod tests {

#[test]
fn size_of_entry_data() {
assert_eq!(
std::mem::size_of::<EntryData>(),
80,
"the size of this should not change unexpectedly as it affects overall memory consumption"
assert!(
std::mem::size_of::<EntryData>() <= 80,
"the size of this ({}) should not exceed 80 as it affects overall memory consumption",
std::mem::size_of::<EntryData>()
);
}
}

0 comments on commit 9123ee7

Please sign in to comment.