aboutsummaryrefslogtreecommitdiffstats
path: root/unittests
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-04-23 00:15:26 +0000
committerOwen Anderson <resistor@mac.com>2009-04-23 00:15:26 +0000
commit3f7c72ab548b534cd0c4efa070c6de07dbed69f9 (patch)
tree77ec6046361757108f20257af42701f1fc28a90e /unittests
parent9c159499675228990ffa5a169914ce30a455442f (diff)
downloadexternal_llvm-3f7c72ab548b534cd0c4efa070c6de07dbed69f9.zip
external_llvm-3f7c72ab548b534cd0c4efa070c6de07dbed69f9.tar.gz
external_llvm-3f7c72ab548b534cd0c4efa070c6de07dbed69f9.tar.bz2
Use the testcase from PR2791.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69846 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/ADT/SmallVectorTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/unittests/ADT/SmallVectorTest.cpp b/unittests/ADT/SmallVectorTest.cpp
index 7404bee..19ef099 100644
--- a/unittests/ADT/SmallVectorTest.cpp
+++ b/unittests/ADT/SmallVectorTest.cpp
@@ -340,9 +340,9 @@ TEST_F(SmallVectorTest, InsertTest) {
TEST_F(SmallVectorTest, InsertRepeatedTest) {
SCOPED_TRACE("InsertRepeatedTest");
- makeSequence(theVector, 1, 3);
- theVector.insert(theVector.begin() + 1, 3, Constructable(77));
- assertValuesInOrder(theVector, 6u, 1, 77, 77, 77, 2, 3);
+ makeSequence(theVector, 10, 15);
+ theVector.insert(theVector.begin() + 1, 2, Constructable(16));
+ assertValuesInOrder(theVector, 8u, 10, 16, 16, 11, 12, 13, 14, 15);
}
// Insert range.