From 224ccb38d349f3967f3ce7456bd3a637be142a60 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Sun, 8 Sep 2013 19:28:51 +0000 Subject: [PATCH] Fix minor type-o in tests. llvm-svn: 190280 --- .../sequences/forwardlist/forwardlist.cons/size.pass.cpp | 2 +- .../test/containers/sequences/list/list.cons/size_type.pass.cpp | 2 +- 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 4fd3263e40dc..81eb866642b2 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 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 a80d96e51115..e32b22f5aa03 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