Skip to content

Commit

Permalink
Only test table entries that upstream tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed May 31, 2020
1 parent aa8d95a commit f77d45c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/d2s_table_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fn test_compute_pow5() {

#[test]
fn test_compute_inv_pow5() {
for (i, entry) in DOUBLE_POW5_INV_SPLIT.iter().enumerate() {
for (i, entry) in DOUBLE_POW5_INV_SPLIT[..292].iter().enumerate() {
assert_eq!(*entry, unsafe { compute_inv_pow5(i as u32) }, "entry {}", i);
}
}

0 comments on commit f77d45c

Please sign in to comment.