diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-03-01 13:49:26 +0100 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-03-01 13:49:26 +0100 |
commit | cb6cacdc7eade9d4290767bafb7ccf4e935d0fbf (patch) | |
tree | 42c4fea5f87c657ce326402af0b50e41cd47ac5c /test | |
parent | fa2a5bdf0152002de520fcc72e48686b9e2657b1 (diff) |
allowing to store gaps in SourceOffsetVector and fixed bug with trim not resetting offsets correctly when the new length is zero
Diffstat (limited to 'test')
-rw-r--r-- | test/core/parser/utils/SourceOffsetVectorTest.cpp | 2 |
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); |