move set comprehension tests to comletion/comprehensions.py
This commit is contained in:
1 parent
4cc6cb3ac4
commit
fdcf718317
2 files changed
+7
-31
No files matched your search
@@ -50,6 +50,13 @@ left
|
||||
##? str()
|
||||
{a-1:b for a,b in {1:'a', 3:1.0}.items()}[0]
|
||||
|
||||
# with a set literal
|
||||
#? int()
|
||||
[a for a in {1, 2, 3}][0]
|
||||
|
||||
##? int()
|
||||
{a for a in range(10)}[0]
|
||||
|
||||
# list comprehensions should also work in combination with functions
|
||||
def listen(arg):
|
||||
for x in arg:
|
||||
|
||||
Reference in new issue
Block a user