Skip to content

Commit

Permalink
Fix tests for non 64-bit architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
fitzgen committed Jan 24, 2022
1 parent 8aac0c9 commit 2e684b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/derive.rs
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ fn one_lifetime() {
assert_eq!("abc", lifetime.alpha);

let (lower, upper) = <OneLifetime as Arbitrary>::size_hint(0);
assert_eq!(lower, 8);
assert_eq!(lower, std::mem::size_of::<usize>());
assert_eq!(upper, None);
}

Expand All @@ -183,6 +183,6 @@ fn two_lifetimes() {
assert_eq!("def", lifetime.beta);

let (lower, upper) = <TwoLifetimes as Arbitrary>::size_hint(0);
assert_eq!(lower, 16);
assert_eq!(lower, std::mem::size_of::<usize>() * 2);
assert_eq!(upper, None);
}

0 comments on commit 2e684b4

Please sign in to comment.