Fix minor type-o in tests.

llvm-svn: 190280
This commit is contained in:
Howard Hinnant 2013-09-08 19:28:51 +00:00
parent fb8297668f
commit 224ccb38d3
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ void check_allocator(unsigned n, Allocator const &alloc = Allocator())
typedef std::forward_list<T, Allocator> C; typedef std::forward_list<T, Allocator> C;
C d(n, alloc); C d(n, alloc);
assert(d.get_allocator() == alloc); assert(d.get_allocator() == alloc);
assert(std::distance(l.begin(), l.end()) == 3); assert(std::distance(l.begin(), l.end()) == n);
#endif #endif
} }

View File

@ -27,7 +27,7 @@ test3(unsigned n, Allocator const &alloc = Allocator())
{ {
C d(n, alloc); C d(n, alloc);
assert(d.size() == n); 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); assert(d.get_allocator() == alloc);
} }
#endif #endif