diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-05-18 00:36:11 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-05-18 00:36:11 +0200 |
| commit | 8b58171d7ca036d71b32749286c251cc91bdd10e (patch) | |
| tree | 4594ab5088edf8eec44f3bafe3fb8fecb13ac61b /tests/typ/expr/block.typ | |
| parent | 8d67c0ca5eb3486dde97fd281bd4a51d535c600c (diff) | |
Reorganize test cases
Diffstat (limited to 'tests/typ/expr/block.typ')
| -rw-r--r-- | tests/typ/expr/block.typ | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/tests/typ/expr/block.typ b/tests/typ/expr/block.typ deleted file mode 100644 index 196e6c14..00000000 --- a/tests/typ/expr/block.typ +++ /dev/null @@ -1,38 +0,0 @@ -// Test code blocks. - ---- -All none - -// Nothing evaluates to none. -{} - -// Let evaluates to none. -{ let v = 0 } - -// Trailing none evaluates to none. -{ - type("") - none -} - ---- -// Evaluates to single expression. -{ "Hello" } - -// Evaluates to trailing expression. -{ let x = "Hel"; x + "lo" } - -// Evaluates to concatenation of for loop bodies. -{ - let parts = ("Hel", "lo") - for s in parts [{s}] -} - ---- -// Works the same way in code environment. -// Ref: false -#test(3, { - let x = 1 - let y = 2 - x + y -}) |
