[libcxx] r276580 - Make bucket_count() greater-equal assertions portable. Patch from STL at microsoft.com
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Sun Jul 24 16:16:37 PDT 2016
Author: ericwf
Date: Sun Jul 24 18:16:37 2016
New Revision: 276580
URL: http://llvm.org/viewvc/llvm-project?rev=276580&view=rev
Log:
Make bucket_count() greater-equal assertions portable. Patch from STL at microsoft.com
Modified:
libcxx/trunk/test/std/containers/unord/unord.map/bucket_count.pass.cpp
libcxx/trunk/test/std/containers/unord/unord.multimap/bucket_count.pass.cpp
libcxx/trunk/test/std/containers/unord/unord.multiset/bucket_count.pass.cpp
libcxx/trunk/test/std/containers/unord/unord.set/bucket_count.pass.cpp
Modified: libcxx/trunk/test/std/containers/unord/unord.map/bucket_count.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/unord/unord.map/bucket_count.pass.cpp?rev=276580&r1=276579&r2=276580&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/unord/unord.map/bucket_count.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/unord/unord.map/bucket_count.pass.cpp Sun Jul 24 18:16:37 2016
@@ -44,7 +44,7 @@ int main()
P(80, "eighty"),
};
const C c(std::begin(a), std::end(a));
- assert(c.bucket_count() >= 11);
+ assert(c.bucket_count() >= 8);
}
#if TEST_STD_VER >= 11
{
@@ -69,7 +69,7 @@ int main()
P(80, "eighty"),
};
const C c(std::begin(a), std::end(a));
- assert(c.bucket_count() >= 11);
+ assert(c.bucket_count() >= 8);
}
#endif
}
Modified: libcxx/trunk/test/std/containers/unord/unord.multimap/bucket_count.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/unord/unord.multimap/bucket_count.pass.cpp?rev=276580&r1=276579&r2=276580&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/unord/unord.multimap/bucket_count.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/unord/unord.multimap/bucket_count.pass.cpp Sun Jul 24 18:16:37 2016
@@ -44,6 +44,6 @@ int main()
P(80, "eighty"),
};
const C c(std::begin(a), std::end(a));
- assert(c.bucket_count() >= 11);
+ assert(c.bucket_count() >= 8);
}
}
Modified: libcxx/trunk/test/std/containers/unord/unord.multiset/bucket_count.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/unord/unord.multiset/bucket_count.pass.cpp?rev=276580&r1=276579&r2=276580&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/unord/unord.multiset/bucket_count.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/unord/unord.multiset/bucket_count.pass.cpp Sun Jul 24 18:16:37 2016
@@ -45,7 +45,7 @@ int main()
P(80)
};
const C c(std::begin(a), std::end(a));
- assert(c.bucket_count() >= 11);
+ assert(c.bucket_count() >= 8);
}
#if TEST_STD_VER >= 11
{
@@ -73,7 +73,7 @@ int main()
P(80)
};
const C c(std::begin(a), std::end(a));
- assert(c.bucket_count() >= 11);
+ assert(c.bucket_count() >= 8);
}
#endif
}
Modified: libcxx/trunk/test/std/containers/unord/unord.set/bucket_count.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/unord/unord.set/bucket_count.pass.cpp?rev=276580&r1=276579&r2=276580&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/unord/unord.set/bucket_count.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/unord/unord.set/bucket_count.pass.cpp Sun Jul 24 18:16:37 2016
@@ -45,7 +45,7 @@ int main()
P(80)
};
const C c(std::begin(a), std::end(a));
- assert(c.bucket_count() >= 11);
+ assert(c.bucket_count() >= 8);
}
#if TEST_STD_VER >= 11
{
@@ -71,7 +71,7 @@ int main()
P(80)
};
const C c(std::begin(a), std::end(a));
- assert(c.bucket_count() >= 11);
+ assert(c.bucket_count() >= 8);
}
#endif
}
More information about the cfe-commits
mailing list