From f77d45cad23a94072df10090cd4de8eaea8e1a18 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 30 May 2020 19:40:01 -0700 Subject: [PATCH] Only test table entries that upstream tests --- tests/d2s_table_test.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/d2s_table_test.rs b/tests/d2s_table_test.rs index 9e30e71..aa45c55 100644 --- a/tests/d2s_table_test.rs +++ b/tests/d2s_table_test.rs @@ -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); } }