diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-07-30 18:04:08 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-07-30 18:49:19 +0200 |
| commit | 1ee1d078e2480ddd08d40915bc7a74a8352acff0 (patch) | |
| tree | 1e7ff367278a19fead3e404cf06d65bfb80a6cd9 /tests/typ/code/call-wide.typ | |
| parent | 42a27b48df427edf8dbb624c51551a90ecf2e7ea (diff) | |
Fatal errors
- Makes errors fatal, so that a phase is only reached when all previous phases were error-free
- Parsing still recovers and can produce multiple errors
- Evaluation fails fast and can thus produce only a single error (except for parse errors due to an import)
- The single error that could occur during execution is removed for now
- Removes Value::Error variant
Diffstat (limited to 'tests/typ/code/call-wide.typ')
| -rw-r--r-- | tests/typ/code/call-wide.typ | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/tests/typ/code/call-wide.typ b/tests/typ/code/call-wide.typ deleted file mode 100644 index 1ad4995d..00000000 --- a/tests/typ/code/call-wide.typ +++ /dev/null @@ -1,40 +0,0 @@ -// Test wide calls. - ---- -// Test multiple wide calls in separate expressions. -#font!(fill: eastern) - First -#font!(fill: forest) - Second - ---- -// Test in heading. -= A #align!(right) B -C - ---- -// Test evaluation semantics. - -#let x = 1 -#let f(x, body) = (x, body) -#f!(x) -{ x = 2 } - ---- -// Test multiple wide calls in one expression. -// Ref: false - -#let f() = [] -#let g(x, y) = [] - -// Error: 2-4 wide calls are only allowed directly in templates -{f!()} - -// Test nested wide calls. -// Error: 5-7 wide calls are only allowed directly in templates -#g!(f!()) - ---- -// Test missing parentheses. -// Ref: false - -// Error: 4 expected argument list -#f! |
