mirror of
https://github.com/typst/typst
synced 2025-05-14 17:15:28 +08:00
Remove grid usize overflow tests (#3687)
This commit is contained in:
parent
2bf9f95dd8
commit
c8d4a4d2b6
@ -203,29 +203,3 @@
|
|||||||
// Robert got grade B on other exams.
|
// Robert got grade B on other exams.
|
||||||
..(table.cell(y: 4, fill: aqua)[B],) * 2,
|
..(table.cell(y: 4, fill: aqua)[B],) * 2,
|
||||||
)
|
)
|
||||||
|
|
||||||
---
|
|
||||||
// Error: 5:3-5:39 cell position too large
|
|
||||||
#grid(
|
|
||||||
columns: 3,
|
|
||||||
rows: 2em,
|
|
||||||
fill: (x, y) => if calc.odd(x + y) { red.lighten(50%) } else { green },
|
|
||||||
grid.cell(y: 6148914691236517206)[a],
|
|
||||||
)
|
|
||||||
|
|
||||||
---
|
|
||||||
// Error: 5:3-5:46 cell position too large
|
|
||||||
#table(
|
|
||||||
columns: 3,
|
|
||||||
rows: 2em,
|
|
||||||
fill: (x, y) => if calc.odd(x + y) { red.lighten(50%) } else { green },
|
|
||||||
table.cell(x: 2, y: 6148914691236517206)[a],
|
|
||||||
)
|
|
||||||
|
|
||||||
---
|
|
||||||
// Error: 3:3-3:45 cell would span an exceedingly large position
|
|
||||||
// Hint: 3:3-3:45 try reducing the cell's rowspan or colspan
|
|
||||||
#grid(
|
|
||||||
columns: 500,
|
|
||||||
grid.cell(rowspan: 6148914691236517206)[a]
|
|
||||||
)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user