parent
fb8297668f
commit
224ccb38d3
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue