diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/suite/math/call.typ | 5 | ||||
| -rw-r--r-- | tests/suite/scripting/ops.typ | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/tests/suite/math/call.typ b/tests/suite/math/call.typ index 9eef1613..03747f58 100644 --- a/tests/suite/math/call.typ +++ b/tests/suite/math/call.typ @@ -95,3 +95,8 @@ $ mat( ,1, ; , ,1; ) $ + +--- issue-2885-math-var-only-in-global --- +// Error: 7-10 unknown variable: rgb +// Hint: 7-10 `rgb` is not available directly in math, try adding a hash before it: `#rgb` +$text(rgb(0, 0, 0), "foo")$ diff --git a/tests/suite/scripting/ops.typ b/tests/suite/scripting/ops.typ index 1c957217..e0c94e02 100644 --- a/tests/suite/scripting/ops.typ +++ b/tests/suite/scripting/ops.typ @@ -414,7 +414,7 @@ --- ops-assign-unknown-var-lhs --- #{ // Error: 3-6 unknown variable: a-1 - // Hint: 3-6 if you meant to use subtraction, try adding spaces around the minus sign + // Hint: 3-6 if you meant to use subtraction, try adding spaces around the minus sign: `a - 1` a-1 = 2 } @@ -425,7 +425,7 @@ a = a -1 // Error: 7-10 unknown variable: a-1 - // Hint: 7-10 if you meant to use subtraction, try adding spaces around the minus sign + // Hint: 7-10 if you meant to use subtraction, try adding spaces around the minus sign: `a - 1` a = a-1 } |
