Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcf8823f

Browse files
committed
added regression test for "in Dictionary.Keys" check
1 parent2910800 commitcf8823f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎tests/test_collection_mixins.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,10 @@ def test_dict_items():
1414
k,v=items[0]
1515
assertk==42
1616
assertv=="a"
17+
18+
# regression test for https://github.com/pythonnet/pythonnet/issues/1785
19+
deftest_dict_in_keys():
20+
d=C.Dictionary[str,int]()
21+
d["a"]=42
22+
assert"a"ind.Keys
23+
assert"b"notind.Keys

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp