Test case for preceding fix

This commit is contained in:
K. Lange 2022-05-24 13:33:34 +09:00
parent b9776aec1e
commit 74e064c82c
2 changed files with 10 additions and 0 deletions

9
test/testForIf.krk Normal file
View File

@ -0,0 +1,9 @@
let candidates = {'foo','bar','baz'}
let values = {
x for x in ['foo','bar','baz','qux']
if x in candidates
}
print(sorted(list(values)))

View File

@ -0,0 +1 @@
['bar', 'baz', 'foo']