Use spvOpcodeMake() in ImmediateInt tests.
authorDejan Mircevski <deki@google.com>
Thu, 3 Sep 2015 18:28:41 +0000 (14:28 -0400)
committerDavid Neto <dneto@google.com>
Mon, 26 Oct 2015 16:52:01 +0000 (12:52 -0400)
test/ImmediateInt.cpp

index c52f582..7bc25f1 100644 (file)
@@ -86,7 +86,8 @@ TEST_F(ImmediateIntTest, InvalidStatementBetweenValidOnes) {
   EXPECT_THAT(
       Subvector(CompileSuccessfully("OpTypeFloat %10 32 !5 !6 !7 OpEmitVertex"),
                 kFirstInstruction),
-      ElementsAre(0x00030016, 10, 32, 5, 6, 7, 0x000100DA));
+      ElementsAre(spvOpcodeMake(3, spv::OpTypeFloat), 10, 32, 5, 6, 7,
+                  spvOpcodeMake(1, spv::OpEmitVertex)));
 }
 
 TEST_F(ImmediateIntTest, NextOpcodeRecognized) {