summaryrefslogtreecommitdiff
path: root/tests/functional/ext/for_any_all.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/ext/for_any_all.py')
-rw-r--r--tests/functional/ext/for_any_all.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/functional/ext/for_any_all.py b/tests/functional/ext/for_any_all.py
index 674bcf68b..785cefebd 100644
--- a/tests/functional/ext/for_any_all.py
+++ b/tests/functional/ext/for_any_all.py
@@ -52,3 +52,10 @@ def nested_check(items):
return True
print(items)
return items[3] > 5
+
+def words_contains_word(words):
+ """Return whether words contains 'word'"""
+ for word in words: # [consider-using-any-or-all]
+ if word == "word":
+ return True
+ return False