[cfe-commits] [libcxx] r116515 - in /libcxx/trunk/test/containers: sequences/vector.bool/insert_iter_iter_iter.pass.cpp unord/unord.set/bucket_size.pass.cpp

Howard Hinnant hhinnant at apple.com
Thu Oct 14 14:08:32 PDT 2010


Author: hhinnant
Date: Thu Oct 14 16:08:32 2010
New Revision: 116515

URL: http://llvm.org/viewvc/llvm-project?rev=116515&view=rev
Log:
Fix two test bugs

Modified:
    libcxx/trunk/test/containers/sequences/vector.bool/insert_iter_iter_iter.pass.cpp
    libcxx/trunk/test/containers/unord/unord.set/bucket_size.pass.cpp

Modified: libcxx/trunk/test/containers/sequences/vector.bool/insert_iter_iter_iter.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/containers/sequences/vector.bool/insert_iter_iter_iter.pass.cpp?rev=116515&r1=116514&r2=116515&view=diff
==============================================================================
--- libcxx/trunk/test/containers/sequences/vector.bool/insert_iter_iter_iter.pass.cpp (original)
+++ libcxx/trunk/test/containers/sequences/vector.bool/insert_iter_iter_iter.pass.cpp Thu Oct 14 16:08:32 2010
@@ -22,7 +22,7 @@
     {
         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 @@
     {
         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);

Modified: libcxx/trunk/test/containers/unord/unord.set/bucket_size.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/containers/unord/unord.set/bucket_size.pass.cpp?rev=116515&r1=116514&r2=116515&view=diff
==============================================================================
--- libcxx/trunk/test/containers/unord/unord.set/bucket_size.pass.cpp (original)
+++ libcxx/trunk/test/containers/unord/unord.set/bucket_size.pass.cpp Thu Oct 14 16:08:32 2010
@@ -39,7 +39,5 @@
         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);
     }
 }





More information about the cfe-commits mailing list