Negative test for GroupOperation.
authorDejan Mircevski <deki@google.com>
Tue, 13 Oct 2015 20:32:38 +0000 (16:32 -0400)
committerDavid Neto <dneto@google.com>
Mon, 26 Oct 2015 16:55:33 +0000 (12:55 -0400)
test/TextToBinary.Group.cpp

index cb9eb84..907eefb 100644 (file)
@@ -62,6 +62,11 @@ INSTANTIATE_TEST_CASE_P(TextToBinaryGroupOperation, GroupOperationTest,
 #undef CASE
 // clang-format on
 
+TEST_F(GroupOperationTest, WrongGroupOperation) {
+  EXPECT_THAT(CompileFailure("%r = OpGroupUMin %t %e xxyyzz %x"),
+              Eq("Invalid group operation 'xxyyzz'."));
+}
+
 // TODO(dneto): OpAsyncGroupCopy
 // TODO(dneto): OpWaitGroupEvents
 // TODO(dneto): OpGroupAll