@@ -223,42 +223,4 @@ TEST(Polynomial, Full)
223223 ASSERT_THROW_OR_ABORT (no_full_bad (), " .*start_index.*other.start_index.*" );
224224}
225225
226- // TODO(https://github.com/AztecProtocol/barretenberg/issues/1113): Optimizing based on actual sizes would involve using
227- // expand, but it is currently unused.
228- TEST (Polynomial, Expand)
229- {
230- // Suppress warnings about fork(), we're OK with the edge cases.
231- GTEST_FLAG_SET (death_test_style, " threadsafe" );
232- using FF = bb::fr;
233- auto test_subset_good = []() {
234- // Expand legally within poly
235- auto poly = bb::Polynomial<FF>::random (4 , 10 , /* start index*/ 1 );
236- poly.expand (1 , 6 );
237- poly.expand (0 , 9 );
238- poly.expand (0 , 10 );
239- };
240- ASSERT_NO_FATAL_FAILURE (test_subset_good ());
241-
242- auto test_subset_bad1 = []() {
243- auto poly = bb::Polynomial<FF>::random (4 , 10 , /* start index*/ 1 );
244- // Expand beyond virtual size
245- poly.expand (1 , 11 );
246- };
247- ASSERT_THROW_OR_ABORT (test_subset_bad1 (), " .*new_end_index.*virtual_size.*" );
248-
249- auto test_subset_bad2 = []() {
250- auto poly = bb::Polynomial<FF>::random (5 , 10 , /* start index*/ 1 );
251- // Expand illegally on start_index
252- poly.expand (2 , 7 );
253- };
254- ASSERT_THROW_OR_ABORT (test_subset_bad2 (), " .*new_start_index.*start_index.*" );
255-
256- auto test_subset_bad3 = []() {
257- auto poly = bb::Polynomial<FF>::random (5 , 10 , /* start_index*/ 1 );
258- // Expand illegally on end_index
259- poly.expand (1 , 3 );
260- };
261- ASSERT_THROW_OR_ABORT (test_subset_bad3 (), " .*new_end_index.*end_index.*" );
262- }
263-
264226#endif
0 commit comments