We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 310102c commit bba6be7Copy full SHA for bba6be7
graalpython/com.oracle.graal.python.test/src/tests/cpyext/test_set.py
@@ -182,3 +182,23 @@ def compile_module(self, name):
182
arguments=["PyObject* o", "PyObject* item"],
183
cmpfunc=unhandled_error_compare
184
)
185
+
186
+ test_PySet_GET_SIZE = CPyExtFunction(
187
+ lambda args: len(args[0]),
188
+ lambda: (
189
+ (set(),),
190
191
+ (set([1, 2, 3]),),
192
+ (set({'a', 'b'}),),
193
+ (frozenset([1, 2, 3]),),
194
+ (frozenset({'a', 'b'}),),
195
+ (frozenset([None]),),
196
+ (FrozenSetSubclass(),),
197
+ (SetSubclass([None]),),
198
+ ),
199
+ resultspec="n",
200
+ argspec='O',
201
+ arguments=["PyObject* o"],
202
+ cmpfunc=unhandled_error_compare
203
+ )
204
0 commit comments