Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-baker committed Feb 22, 2024
1 parent e239c76 commit 8c5440b
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions test/val/val_memory_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5137,10 +5137,8 @@ OpFunctionEnd

CompileSuccessfully(spirv);
EXPECT_EQ(SPV_ERROR_INVALID_ID, ValidateInstructions());
EXPECT_THAT(getDiagnosticString(),
HasSubstr("Index is out of bounds"));
EXPECT_THAT(getDiagnosticString(),
HasSubstr("cannot find index -224"));
EXPECT_THAT(getDiagnosticString(), HasSubstr("Index is out of bounds"));
EXPECT_THAT(getDiagnosticString(), HasSubstr("cannot find index -224"));
}

TEST_F(ValidateMemory, AccessChainNegativeStructIndex64) {
Expand All @@ -5167,10 +5165,8 @@ OpFunctionEnd

CompileSuccessfully(spirv);
EXPECT_EQ(SPV_ERROR_INVALID_ID, ValidateInstructions());
EXPECT_THAT(getDiagnosticString(),
HasSubstr("Index is out of bounds"));
EXPECT_THAT(getDiagnosticString(),
HasSubstr("cannot find index -224"));
EXPECT_THAT(getDiagnosticString(), HasSubstr("Index is out of bounds"));
EXPECT_THAT(getDiagnosticString(), HasSubstr("cannot find index -224"));
}

} // namespace
Expand Down

0 comments on commit 8c5440b

Please sign in to comment.