Negative test for Dim.

This commit is contained in:
Dejan Mircevski 2015-10-13 11:46:09 -04:00 committed by David Neto
parent 52ff534040
commit 2fd3792c3a

View File

@ -68,6 +68,11 @@ INSTANTIATE_TEST_CASE_P(
#undef CASE
// clang-format on
TEST_F(DimTest, WrongDim) {
EXPECT_THAT(CompileFailure("%i = OpTypeImage %t xxyyzz 1 2 3 4 R8"),
Eq("Invalid dimensionality 'xxyyzz'."));
}
// Test ImageFormat enums via OpTypeImage
using ImageFormatTest = spvtest::TextToBinaryTestBase<