diff --git a/src/validator_impl_import_test.cc b/src/validator_impl_import_test.cc index 5eb1a68f96..e396ea2b1c 100644 --- a/src/validator_impl_import_test.cc +++ b/src/validator_impl_import_test.cc @@ -12,8 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include - #include #include "gtest/gtest.h" @@ -26,12 +24,10 @@ namespace { ast::Module build_module(std::string data) { auto reader = std::make_unique( std::string(data.begin(), data.end())); - assert(reader->Parse()); + EXPECT_TRUE(reader->Parse()) << reader->error(); return reader->module(); } -} // namespace - using ValidatorImplTest = testing::Test; TEST_F(ValidatorImplTest, Import) { @@ -59,4 +55,5 @@ TEST_F(ValidatorImplTest, Import_Fail_Typo) { EXPECT_EQ(v.error(), "1:1: v-0001: unknown import: GLSL.std.4501"); } +} // namespace } // namespace tint