Author: antonp
Date: Fri Jul 7 08:09:29 2006
New Revision: 419905
URL: http://svn.apache.org/viewvc?rev=419905&view=rev
Log:
2006-07-07 Anton Pevtsov <[EMAIL PROTECTED]>
* 25.for.each.cpp: Updated acording to changes in alg_test.h -
the calls to make_iter replaced with calls to iterators ctors.
* 25.mismatch.cpp: Same
* 25.reverse.cpp: Same
* 25.rotate.cpp: Same
Modified:
incubator/stdcxx/trunk/tests/algorithms/25.for.each.cpp
incubator/stdcxx/trunk/tests/algorithms/25.mismatch.cpp
incubator/stdcxx/trunk/tests/algorithms/25.reverse.cpp
incubator/stdcxx/trunk/tests/algorithms/25.rotate.cpp
Modified: incubator/stdcxx/trunk/tests/algorithms/25.for.each.cpp
URL:
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/algorithms/25.for.each.cpp?rev=419905&r1=419904&r2=419905&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/algorithms/25.for.each.cpp (original)
+++ incubator/stdcxx/trunk/tests/algorithms/25.for.each.cpp Fri Jul 7 08:09:29
2006
@@ -97,11 +97,8 @@
X* const buf_end = buf + i;
- const InputIterator first =
- make_iter (buf, buf, buf_end, dummy);
-
- const InputIterator last =
- make_iter (buf_end, buf_end, buf_end, dummy);
+ const InputIterator first (buf, buf, buf_end);
+ const InputIterator last (buf_end, buf_end, buf_end);
// create a const function object and zero out all its counters
const Function fun (0, 0);
Modified: incubator/stdcxx/trunk/tests/algorithms/25.mismatch.cpp
URL:
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/algorithms/25.mismatch.cpp?rev=419905&r1=419904&r2=419905&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/algorithms/25.mismatch.cpp (original)
+++ incubator/stdcxx/trunk/tests/algorithms/25.mismatch.cpp Fri Jul 7 08:09:29
2006
@@ -73,14 +73,9 @@
X* const buf1_end = buf1 + i + 1;
X* const buf2_end = buf2 + i + 1;
- const InputIterator1 first1 =
- make_iter (buf1, buf1, buf1_end, it1_dummy);
-
- const InputIterator1 last1 =
- make_iter (buf1_end, buf1_end, buf1_end, it1_dummy);
-
- const InputIterator2 first2 =
- make_iter (buf2, buf2, buf2_end, it2_dummy);
+ const InputIterator1 first1 (buf1, buf1, buf1_end);
+ const InputIterator1 last1 (buf1_end, buf1_end, buf1_end);
+ const InputIterator2 first2 (buf2, buf2, buf2_end);
const std::equal_to<X> pred = std::equal_to<X>();
Modified: incubator/stdcxx/trunk/tests/algorithms/25.reverse.cpp
URL:
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/algorithms/25.reverse.cpp?rev=419905&r1=419904&r2=419905&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/algorithms/25.reverse.cpp (original)
+++ incubator/stdcxx/trunk/tests/algorithms/25.reverse.cpp Fri Jul 7 08:09:29
2006
@@ -165,7 +165,7 @@
template <class Iterator, class OutputIterator, class T>
void test_reverse (int line,
const char *src,
- Iterator it, OutputIterator dummy,
+ Iterator& it, OutputIterator& ,
const T*, ReverseCopyTag)
{
static const char* const itname = type_name (it, (T*)0);
@@ -176,10 +176,10 @@
T* const xsrc = T::from_char (src, nsrc);
T* const xdst = T::from_char (src, nsrc);
- const Iterator first = make_iter (xsrc, xsrc, xsrc + nsrc, it);
- const Iterator last = make_iter (xsrc + nsrc, xsrc, xsrc + nsrc, it);
+ const Iterator first (xsrc, xsrc, xsrc + nsrc);
+ const Iterator last (xsrc + nsrc, xsrc, xsrc + nsrc);
- const OutputIterator result = make_iter (xdst, xdst, xdst + nsrc, dummy);
+ const OutputIterator result (xdst, xdst, xdst + nsrc);
std::size_t last_n_op_assign = T::n_total_op_assign_;
Modified: incubator/stdcxx/trunk/tests/algorithms/25.rotate.cpp
URL:
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/algorithms/25.rotate.cpp?rev=419905&r1=419904&r2=419905&view=diff
==============================================================================
--- incubator/stdcxx/trunk/tests/algorithms/25.rotate.cpp (original)
+++ incubator/stdcxx/trunk/tests/algorithms/25.rotate.cpp Fri Jul 7 08:09:29
2006
@@ -196,11 +196,11 @@
T* const xsrc = T::from_char (src, nsrc);
T* const xdst = T::from_char (src, nsrc);
- const Iterator first = make_iter (xsrc, xsrc, xsrc + nsrc, it);
- const Iterator middle = make_iter (xsrc + midnsrc, xsrc, xsrc + nsrc, it);
- const Iterator last = make_iter (xsrc + nsrc, xsrc, xsrc + nsrc, it);
+ const Iterator first (xsrc, xsrc, xsrc + nsrc);
+ const Iterator middle (xsrc + midnsrc, xsrc, xsrc + nsrc);
+ const Iterator last (xsrc + nsrc, xsrc, xsrc + nsrc);
- const OutputIterator result = make_iter (xdst, xdst, xdst + nsrc, dummy);
+ const OutputIterator result (xdst, xdst, xdst + nsrc);
std::size_t last_n_op_assign = T::n_total_op_assign_;