From 666cbbf123d8364a603249e7a400b566a6ced0bb Mon Sep 17 00:00:00 2001 From: Tzerjen Wei Date: Sun, 9 Aug 2015 17:58:38 +0800 Subject: [PATCH] update the test of set comprehension literal --- test/completion/comprehensions.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/test/completion/comprehensions.py b/test/completion/comprehensions.py index a8aaa0e9..8ba1fbce 100644 --- a/test/completion/comprehensions.py +++ b/test/completion/comprehensions.py @@ -54,8 +54,18 @@ left #? int() [a for a in {1, 2, 3}][0] +#? set() +{a for a in range(10)} + ##? int() -{a for a in range(10)}[0] +[x for x in {a for a in range(10)}][0] + +##? int() +{a for a in range(10)}.pop() + +##? int() +iter({a for a in range(10)}).next() + # list comprehensions should also work in combination with functions def listen(arg):