diff --git a/test/testForIf.krk b/test/testForIf.krk new file mode 100644 index 0000000..0291965 --- /dev/null +++ b/test/testForIf.krk @@ -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))) diff --git a/test/testForIf.krk.expect b/test/testForIf.krk.expect new file mode 100644 index 0000000..e06219c --- /dev/null +++ b/test/testForIf.krk.expect @@ -0,0 +1 @@ +['bar', 'baz', 'foo']