Fix minor type-o in tests.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@190280 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Howard Hinnant 2013-09-08 19:28:51 +00:00
parent 955f2c88a1
commit ac04e1f5bf
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;
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
}

View File

@ -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