commit | 30c035234830c7fdb36841067e9f9ecb50c016b3 | [log] [tgz] |
---|---|---|
author | Blake Thompson <blake@mapbox.com> | Mon Jun 10 14:01:11 2019 -0500 |
committer | Wenzel Jakob <wenzel.jakob@epfl.ch> | Mon Jun 10 21:01:11 2019 +0200 |
tree | 9f27c4430eafef4fe3bb44b4ebca523268d966c7 | |
parent | c251434011959433e254d1b845543b441fccc9b7 [diff] [blame] |
Added __contains__ to stl bindings for maps (#1767) * Added __contains__ to stl bindings for maps
diff --git a/tests/test_stl.py b/tests/test_stl.py index bf185d5..2335cb9 100644 --- a/tests/test_stl.py +++ b/tests/test_stl.py
@@ -56,7 +56,9 @@ """std::map <-> dict""" d = m.cast_map() assert d == {"key": "value"} + assert "key" in d d["key2"] = "value2" + assert "key2" in d assert m.load_map(d) assert doc(m.cast_map) == "cast_map() -> Dict[str, str]"