stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r354154 - /incubator/stdcxx/trunk/tests/algorithms/25.find.cpp
Date Mon, 05 Dec 2005 20:10:28 GMT
Author: sebor
Date: Mon Dec  5 12:10:23 2005
New Revision: 354154

URL: http://svn.apache.org/viewcvs?rev=354154&view=rev
Log:
2005-12-05  Martin Sebor  <sebor@roguewave.com>

	* 25.find.cpp: Exercised the algorithm's ability to return an iterator
	pointing to the first (rather than the second or any other) in a series
	of duplicate elements in the subject sequence.

Modified:
    incubator/stdcxx/trunk/tests/algorithms/25.find.cpp

Modified: incubator/stdcxx/trunk/tests/algorithms/25.find.cpp
URL: http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/tests/algorithms/25.find.cpp?rev=354154&r1=354153&r2=354154&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/algorithms/25.find.cpp (original)
+++ incubator/stdcxx/trunk/tests/algorithms/25.find.cpp Mon Dec  5 12:10:23 2005
@@ -187,14 +187,19 @@
                dummy_iter, (X*)0, pred)
 
     //    +------------------ subject sequence
-    //    |               +--- offset of the element to find (-1 for none)
+    //    |               +--- offset of the value to find (-1 for none)
+    //    |               |    also the offset of the returned iterator
     //    |               |
     //    |               |
     //    v               v
     TEST ("",            -1);
     TEST ("a",            0);
+    TEST ("aa",           0);
     TEST ("ab",           1);
+    TEST ("aaa",          0);
+    TEST ("abb",          1);
     TEST ("abc",          2);
+    TEST ("abcc",         2);
     TEST ("abcd",         3);
     TEST ("abcde",        4);
     TEST ("abcdef",       5);



Mime
View raw message