summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libcxx/test/containers/sequences/forwardlist/forwardlist.cons/size.pass.cpp2
-rw-r--r--libcxx/test/containers/sequences/list/list.cons/size_type.pass.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/test/containers/sequences/forwardlist/forwardlist.cons/size.pass.cpp b/libcxx/test/containers/sequences/forwardlist/forwardlist.cons/size.pass.cpp
index 4fd3263e40d..81eb866642b 100644
--- a/libcxx/test/containers/sequences/forwardlist/forwardlist.cons/size.pass.cpp
+++ b/libcxx/test/containers/sequences/forwardlist/forwardlist.cons/size.pass.cpp
@@ -25,7 +25,7 @@ void check_allocator(unsigned n, Allocator const &alloc = Allocator())
typedef std::forward_list<T, Allocator> C;
C d(n, alloc);
assert(d.get_allocator() == alloc);
- assert(std::distance(l.begin(), l.end()) == 3);
+ assert(std::distance(l.begin(), l.end()) == n);
#endif
}
diff --git a/libcxx/test/containers/sequences/list/list.cons/size_type.pass.cpp b/libcxx/test/containers/sequences/list/list.cons/size_type.pass.cpp
index a80d96e5111..e32b22f5aa0 100644
--- a/libcxx/test/containers/sequences/list/list.cons/size_type.pass.cpp
+++ b/libcxx/test/containers/sequences/list/list.cons/size_type.pass.cpp
@@ -27,7 +27,7 @@ test3(unsigned n, Allocator const &alloc = Allocator())
{
C d(n, alloc);
assert(d.size() == n);
- assert(std::distance(d.begin(), d.end()) == 3);
+ assert(std::distance(d.begin(), d.end()) == n);
assert(d.get_allocator() == alloc);
}
#endif
OpenPOWER on IntegriCloud