[llvm-commits] [llvm] r69846 - /llvm/trunk/unittests/ADT/SmallVectorTest.cpp
Owen Anderson
resistor at mac.com
Wed Apr 22 17:15:26 PDT 2009
Author: resistor
Date: Wed Apr 22 19:15:26 2009
New Revision: 69846
URL: http://llvm.org/viewvc/llvm-project?rev=69846&view=rev
Log:
Use the testcase from PR2791.
Modified:
llvm/trunk/unittests/ADT/SmallVectorTest.cpp
Modified: llvm/trunk/unittests/ADT/SmallVectorTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ADT/SmallVectorTest.cpp?rev=69846&r1=69845&r2=69846&view=diff
==============================================================================
--- llvm/trunk/unittests/ADT/SmallVectorTest.cpp (original)
+++ llvm/trunk/unittests/ADT/SmallVectorTest.cpp Wed Apr 22 19:15:26 2009
@@ -340,9 +340,9 @@
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.
More information about the llvm-commits
mailing list