Fix two test bugs

llvm-svn: 116515
This commit is contained in:
Howard Hinnant 2010-10-14 21:08:32 +00:00
parent 41232a9872
commit c1ef47986b
2 changed files with 2 additions and 4 deletions

View File

@ -22,7 +22,7 @@ int main()
{
std::vector<bool> v(100);
bool a[] = {1, 0, 0, 1, 1};
const bool N = sizeof(a)/sizeof(a[0]);
const unsigned N = sizeof(a)/sizeof(a[0]);
std::vector<bool>::iterator i = v.insert(v.cbegin() + 10, input_iterator<const bool*>(a),
input_iterator<const bool*>(a+N));
assert(v.size() == 100 + N);
@ -38,7 +38,7 @@ int main()
{
std::vector<bool> v(100);
bool a[] = {1, 0, 0, 1, 1};
const bool N = sizeof(a)/sizeof(a[0]);
const unsigned N = sizeof(a)/sizeof(a[0]);
std::vector<bool>::iterator i = v.insert(v.cbegin() + 10, forward_iterator<const bool*>(a),
forward_iterator<const bool*>(a+N));
assert(v.size() == 100 + N);

View File

@ -39,7 +39,5 @@ int main()
assert(c.bucket_size(2) == 1);
assert(c.bucket_size(3) == 1);
assert(c.bucket_size(4) == 1);
assert(c.bucket_size(5) == 0);
assert(c.bucket_size(6) == 0);
}
}