SmallVector: Improve test coverage for insert with repetition
authorDavid Blaikie <dblaikie@gmail.com>
Sun, 8 Jun 2014 19:33:40 +0000 (19:33 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Sun, 8 Jun 2014 19:33:40 +0000 (19:33 +0000)
commitcab673f638be3fdd1b99edbb91820f9fea4ddaa9
tree2204b3807edfa1fe33d4bfa49454289c62d18436
parent5e66eea5ba25c8d6406a456113dfa352919f3d19
SmallVector: Improve test coverage for insert with repetition

To test cases that involve actual repetition (> 1 elements), at least
one element before the insertion point, and some elements of the
original range that still fit in that range space after insertion.

Actually we need coverage for the inverse case too (where no elements
after the insertion point fit into the previously allocated space), but
this'll do for now, and I might end up rewriting bits of SmallVector to
avoid that special case anyway.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210436 91177308-0d34-0410-b5e6-96231b3b80d8
unittests/ADT/SmallVectorTest.cpp