From 2fd3792c3a3b50ee20274f013d133c837605de5b Mon Sep 17 00:00:00 2001 From: Dejan Mircevski Date: Tue, 13 Oct 2015 11:46:09 -0400 Subject: [PATCH] Negative test for Dim. --- test/TextToBinary.TypeDeclaration.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/TextToBinary.TypeDeclaration.cpp b/test/TextToBinary.TypeDeclaration.cpp index 86b742b..90200b3 100644 --- a/test/TextToBinary.TypeDeclaration.cpp +++ b/test/TextToBinary.TypeDeclaration.cpp @@ -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< -- 2.7.4