diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-06-26 20:33:34 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-06-26 20:33:34 +0000 |
| commit | d23de13b3208b94a25e1de463ea3155911512e61 (patch) | |
| tree | c2bc9a0cec68a68070eda79306ab632043b91fea /test/std/algorithms/alg.nonmodifying | |
| parent | 8462a49537476f8c62bcabfe490226af0d7c1cae (diff) | |
Notes
Diffstat (limited to 'test/std/algorithms/alg.nonmodifying')
| -rw-r--r-- | test/std/algorithms/alg.nonmodifying/alg.foreach/for_each_n.pass.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/std/algorithms/alg.nonmodifying/alg.foreach/for_each_n.pass.cpp b/test/std/algorithms/alg.nonmodifying/alg.foreach/for_each_n.pass.cpp index fd24edb43060..9b391f01cea5 100644 --- a/test/std/algorithms/alg.nonmodifying/alg.foreach/for_each_n.pass.cpp +++ b/test/std/algorithms/alg.nonmodifying/alg.foreach/for_each_n.pass.cpp @@ -36,15 +36,15 @@ int main() auto f = for_each_test(0); Iter it = std::for_each_n(Iter(ia), 0, std::ref(f)); assert(it == Iter(ia)); - assert(f.count == 0); + assert(f.count == 0); } { auto f = for_each_test(0); Iter it = std::for_each_n(Iter(ia), s, std::ref(f)); - + assert(it == Iter(ia+s)); - assert(f.count == s); + assert(f.count == s); for (unsigned i = 0; i < s; ++i) assert(ia[i] == static_cast<int>(i+1)); } @@ -52,9 +52,9 @@ int main() { auto f = for_each_test(0); Iter it = std::for_each_n(Iter(ia), 1, std::ref(f)); - + assert(it == Iter(ia+1)); - assert(f.count == 1); + assert(f.count == 1); for (unsigned i = 0; i < 1; ++i) assert(ia[i] == static_cast<int>(i+2)); } |
