Index: test/cctest/test-utils.cc |
diff --git a/test/cctest/test-utils.cc b/test/cctest/test-utils.cc |
index e136858300e318b1a778913477df1768d427d0bf..fbb349b2f0f7427e8de24f66bbf8d1b6b643c971 100644 |
--- a/test/cctest/test-utils.cc |
+++ b/test/cctest/test-utils.cc |
@@ -195,3 +195,15 @@ TEST(SequenceCollector) { |
} |
result.Dispose(); |
} |
+ |
+ |
+TEST(SequenceCollectorRegression) { |
+ SequenceCollector<char> collector(16); |
+ collector.StartSequence(); |
+ collector.Add('0'); |
+ collector.AddBlock( |
+ i::Vector<const char>("12345678901234567890123456789012", 32)); |
Rico
2011/09/08 13:42:37
4 indent?
Lasse Reichstein
2011/09/08 13:43:43
Absolutely.
|
+ i::Vector<char> seq = collector.EndSequence(); |
+ CHECK_EQ(0, strncmp("0123456789012345678901234567890123", |
+ seq.start(), seq.length())); |
+} |