summaryrefslogtreecommitdiff
path: root/tests/run/cpp_stl_multiset.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/cpp_stl_multiset.pyx')
-rw-r--r--tests/run/cpp_stl_multiset.pyx9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/run/cpp_stl_multiset.pyx b/tests/run/cpp_stl_multiset.pyx
index 26f3bbe61..66842e04e 100644
--- a/tests/run/cpp_stl_multiset.pyx
+++ b/tests/run/cpp_stl_multiset.pyx
@@ -104,3 +104,12 @@ def test_unordered_multiset_find_erase(vals, to_remove):
it = ms.find(to_remove)
ms.erase(it)
return sorted([ item for item in ms ])
+
+
+def test_unordered_multiset_misc():
+ """
+ >>> test_unordered_multiset_misc()
+ """
+ cdef unordered_multiset[int] ms = unordered_multiset[int]()
+ ms.insert(1)
+ assert ms.load_factor() > 0