From 57c4398759ccc48b33aeb61b114fc02deeebec4a Mon Sep 17 00:00:00 2001 From: Dejan Mircevski Date: Tue, 13 Oct 2015 12:38:20 -0400 Subject: [PATCH] Negative test for SamplerFilterMode. --- test/TextToBinary.Constant.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/TextToBinary.Constant.cpp b/test/TextToBinary.Constant.cpp index a70949f..a8c49e0 100644 --- a/test/TextToBinary.Constant.cpp +++ b/test/TextToBinary.Constant.cpp @@ -95,6 +95,11 @@ INSTANTIATE_TEST_CASE_P( #undef CASE // clang-format on +TEST_F(SamplerFilterModeTest, WrongMode) { + EXPECT_THAT(CompileFailure("%r = OpConstantSampler %t Clamp 0 xxyyzz"), + Eq("Invalid sampler filter mode 'xxyyzz'.")); +} + struct ConstantTestCase { std::string constant_type; std::string constant_value; -- 2.7.4