diff --git a/src/tint/resolver/const_eval_builtin_test.cc b/src/tint/resolver/const_eval_builtin_test.cc index cc950abe72..a85f4b62b8 100644 --- a/src/tint/resolver/const_eval_builtin_test.cc +++ b/src/tint/resolver/const_eval_builtin_test.cc @@ -1179,33 +1179,6 @@ INSTANTIATE_TEST_SUITE_P( // testing::ValuesIn(Concat(InsertBitsCases(), // InsertBitsCases())))); -using ResolverConstEvalBuiltinTest_InsertBits_InvalidOffsetAndCount = - ResolverTestWithParam>; -TEST_P(ResolverConstEvalBuiltinTest_InsertBits_InvalidOffsetAndCount, Test) { - auto& p = GetParam(); - auto* expr = Call(Source{{12, 34}}, sem::str(sem::BuiltinType::kInsertBits), Expr(1_u), - Expr(1_u), Expr(u32(std::get<0>(p))), Expr(u32(std::get<1>(p)))); - GlobalConst("C", expr); - EXPECT_FALSE(r()->Resolve()); - EXPECT_EQ(r()->error(), - "12:34 error: 'offset + 'count' must be less than or equal to the bit width of 'e'"); -} -INSTANTIATE_TEST_SUITE_P(InsertBits, - ResolverConstEvalBuiltinTest_InsertBits_InvalidOffsetAndCount, - testing::Values( // - std::make_tuple(33, 0), // - std::make_tuple(34, 0), // - std::make_tuple(1000, 0), // - std::make_tuple(u32::Highest(), 0), // - std::make_tuple(0, 33), // - std::make_tuple(0, 34), // - std::make_tuple(0, 1000), // - std::make_tuple(0, u32::Highest()), // - std::make_tuple(33, 33), // - std::make_tuple(34, 34), // - std::make_tuple(1000, 1000), // - std::make_tuple(u32::Highest(), u32::Highest()))); - template std::vector ExtractBitsCases() { using UT = Number>>;