Assembler failing cases for OpCapability

This commit is contained in:
David Neto 2015-09-28 16:14:28 -04:00
Родитель 7cefb23ddb
Коммит cb3db4327d
1 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -260,6 +260,18 @@ INSTANTIATE_TEST_CASE_P(TextToBinaryCapability, OpCapabilityTest,
#undef CASE
// clang-format on
using TextToBinaryCapability = spvtest::TextToBinaryTest;
TEST_F(TextToBinaryCapability, BadMissingCapability) {
EXPECT_THAT(CompileFailure("OpCapability"),
Eq("Expected operand, found end of stream."));
}
TEST_F(TextToBinaryCapability, BadInvalidCapability) {
EXPECT_THAT(CompileFailure("OpCapability 123"),
Eq("Invalid capability '123'."));
}
// TODO(dneto): OpExecutionMode
} // anonymous namespace