summaryrefslogtreecommitdiffstats
path: root/libcxx/test/containers/sequences
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2013-09-08 19:28:51 +0000
committerHoward Hinnant <hhinnant@apple.com>2013-09-08 19:28:51 +0000
commit224ccb38d349f3967f3ce7456bd3a637be142a60 (patch)
treed08eece5c0595d1b17387f211c0b793f2393aa8a /libcxx/test/containers/sequences
parentfb8297668f4b5a6aea19b8b79da47a3ba090d6e3 (diff)
downloadbcm5719-llvm-224ccb38d349f3967f3ce7456bd3a637be142a60.tar.gz
bcm5719-llvm-224ccb38d349f3967f3ce7456bd3a637be142a60.zip
Fix minor type-o in tests.
llvm-svn: 190280
Diffstat (limited to 'libcxx/test/containers/sequences')
-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