[llvm-branch-commits] [llvm-branch] r109335 - /llvm/branches/ggreif/waymark-64/unittests/VMCore/WaymarkTest.cpp
Gabor Greif
ggreif at gmail.com
Sat Jul 24 02:31:46 PDT 2010
Author: ggreif
Date: Sat Jul 24 04:31:46 2010
New Revision: 109335
URL: http://llvm.org/viewvc/llvm-project?rev=109335&view=rev
Log:
compare the other segments successfully too
Modified:
llvm/branches/ggreif/waymark-64/unittests/VMCore/WaymarkTest.cpp
Modified: llvm/branches/ggreif/waymark-64/unittests/VMCore/WaymarkTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/waymark-64/unittests/VMCore/WaymarkTest.cpp?rev=109335&r1=109334&r2=109335&view=diff
==============================================================================
--- llvm/branches/ggreif/waymark-64/unittests/VMCore/WaymarkTest.cpp (original)
+++ llvm/branches/ggreif/waymark-64/unittests/VMCore/WaymarkTest.cpp Sat Jul 24 04:31:46 2010
@@ -66,9 +66,30 @@
std::string segment50 ("00y31y22y13y10y01sx31sx21sx11s02s33s30y2y0s1x0syxS");
std::string result(50, ' ');
- std::transform(many + 8212 - 8000, many + 8212 - 7950, result.begin(), m3);
+ int n = 8000;
+ std::transform(many + 8212 - n, many + 8212 - n + 50, result.begin(), m3);
EXPECT_EQ('2', result[49]);
EXPECT_EQ(segment8000, result);
+ n = 5000;
+ std::transform(many + 8212 - n, many + 8212 - n + 50, result.begin(), m3);
+ EXPECT_EQ('s', result[49]);
+ EXPECT_EQ(segment5000, result);
+ n = 3000;
+ std::transform(many + 8212 - n, many + 8212 - n + 50, result.begin(), m3);
+ EXPECT_EQ('1', result[49]);
+ EXPECT_EQ(segment3000, result);
+ n = 2000;
+ std::transform(many + 8212 - n, many + 8212 - n + 50, result.begin(), m3);
+ EXPECT_EQ('1', result[49]);
+ EXPECT_EQ(segment2000, result);
+ n = 100;
+ std::transform(many + 8212 - n, many + 8212 - n + 50, result.begin(), m3);
+ EXPECT_EQ('3', result[49]);
+ EXPECT_EQ(segment100, result);
+ n = 50;
+ std::transform(many + 8212 - n, many + 8212 - n + 50, result.begin(), m3);
+ EXPECT_EQ('S', result[49]);
+ EXPECT_EQ(segment50, result);
}
} // end anonymous namespace
More information about the llvm-branch-commits
mailing list