diff options
Diffstat (limited to 'tests/casestmt/tcase_arrayconstr.nim')
-rw-r--r-- | tests/casestmt/tcase_arrayconstr.nim | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/casestmt/tcase_arrayconstr.nim b/tests/casestmt/tcase_arrayconstr.nim deleted file mode 100644 index cd7156600..000000000 --- a/tests/casestmt/tcase_arrayconstr.nim +++ /dev/null @@ -1,19 +0,0 @@ -discard """ - output: '''Not found! -Found!''' -""" - -const - md_extension = [".md", ".markdown"] - -proc test(ext: string) = - case ext - of ".txt", md_extension: - echo "Found!" - else: - echo "Not found!" - -test(".something") -# ensure it's not evaluated at compile-time: -var foo = ".markdown" -test(foo) |