summaryrefslogtreecommitdiff
path: root/test/core/parser/utils/SourceOffsetVectorTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/core/parser/utils/SourceOffsetVectorTest.cpp')
-rw-r--r--test/core/parser/utils/SourceOffsetVectorTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/core/parser/utils/SourceOffsetVectorTest.cpp b/test/core/parser/utils/SourceOffsetVectorTest.cpp
index 25a4163..26254f9 100644
--- a/test/core/parser/utils/SourceOffsetVectorTest.cpp
+++ b/test/core/parser/utils/SourceOffsetVectorTest.cpp
@@ -51,7 +51,7 @@ TEST(SourceOffsetVector, gaps)
for (size_t i = 0; i < 999; i++) {
auto elem = vec.loadOffset(i);
EXPECT_EQ(i * 3 + 5, elem.first);
- EXPECT_EQ((i + 1) * 3 + 5, elem.second);
+ EXPECT_EQ(i * 3 + 7, elem.second);
}
auto elem = vec.loadOffset(999);
EXPECT_EQ(999U * 3 + 5, elem.first);