summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPgBiel <9021226+PgBiel@users.noreply.github.com>2024-06-04 12:24:39 -0300
committerGitHub <noreply@github.com>2024-06-04 15:24:39 +0000
commit9adcd9a1f894b212e2757277781955a7d5b8bba8 (patch)
tree6e8b67d8ec9482fca04a87793b8d7c7698d78e12 /tests
parentd360e753bccf996819392539aaaa031f458559e9 (diff)
Refactor casts to use `HintedStrResult` (#4229)
Diffstat (limited to 'tests')
-rw-r--r--tests/suite/layout/grid/cell.typ3
-rw-r--r--tests/suite/layout/grid/footers.typ6
-rw-r--r--tests/suite/layout/grid/headers.typ6
-rw-r--r--tests/suite/layout/grid/stroke.typ12
-rw-r--r--tests/suite/layout/table.typ3
5 files changed, 20 insertions, 10 deletions
diff --git a/tests/suite/layout/grid/cell.typ b/tests/suite/layout/grid/cell.typ
index 3b08c752..cc526adb 100644
--- a/tests/suite/layout/grid/cell.typ
+++ b/tests/suite/layout/grid/cell.typ
@@ -128,5 +128,6 @@
}
--- table-cell-in-grid ---
-// Error: 7-19 cannot use `table.cell` as a grid cell; use `grid.cell` instead
+// Error: 7-19 cannot use `table.cell` as a grid cell
+// Hint: 7-19 use `grid.cell` instead
#grid(table.cell[])
diff --git a/tests/suite/layout/grid/footers.typ b/tests/suite/layout/grid/footers.typ
index c73bcb39..7cd09003 100644
--- a/tests/suite/layout/grid/footers.typ
+++ b/tests/suite/layout/grid/footers.typ
@@ -131,14 +131,16 @@
)
--- table-footer-in-grid ---
-// Error: 3:3-3:20 cannot use `table.footer` as a grid footer; use `grid.footer` instead
+// Error: 3:3-3:20 cannot use `table.footer` as a grid footer
+// Hint: 3:3-3:20 use `grid.footer` instead
#grid(
[a],
table.footer([a]),
)
--- grid-footer-in-table ---
-// Error: 3:3-3:19 cannot use `grid.footer` as a table footer; use `table.footer` instead
+// Error: 3:3-3:19 cannot use `grid.footer` as a table footer
+// Hint: 3:3-3:19 use `table.footer` instead
#table(
[a],
grid.footer([a]),
diff --git a/tests/suite/layout/grid/headers.typ b/tests/suite/layout/grid/headers.typ
index b9a90461..78a2540f 100644
--- a/tests/suite/layout/grid/headers.typ
+++ b/tests/suite/layout/grid/headers.typ
@@ -133,14 +133,16 @@
)
--- table-header-in-grid ---
-// Error: 2:3-2:20 cannot use `table.header` as a grid header; use `grid.header` instead
+// Error: 2:3-2:20 cannot use `table.header` as a grid header
+// Hint: 2:3-2:20 use `grid.header` instead
#grid(
table.header([a]),
[a],
)
--- grid-header-in-table ---
-// Error: 2:3-2:19 cannot use `grid.header` as a table header; use `table.header` instead
+// Error: 2:3-2:19 cannot use `grid.header` as a table header
+// Hint: 2:3-2:19 use `table.header` instead
#table(
grid.header([a]),
[a],
diff --git a/tests/suite/layout/grid/stroke.typ b/tests/suite/layout/grid/stroke.typ
index 9c1c3482..3a26b69a 100644
--- a/tests/suite/layout/grid/stroke.typ
+++ b/tests/suite/layout/grid/stroke.typ
@@ -385,19 +385,23 @@
)
--- table-hline-in-grid ---
-// Error: 7-20 cannot use `table.hline` as a grid line; use `grid.hline` instead
+// Error: 7-20 cannot use `table.hline` as a grid line
+// Hint: 7-20 use `grid.hline` instead
#grid(table.hline())
--- table-vline-in-grid ---
-// Error: 7-20 cannot use `table.vline` as a grid line; use `grid.vline` instead
+// Error: 7-20 cannot use `table.vline` as a grid line
+// Hint: 7-20 use `grid.vline` instead
#grid(table.vline())
--- grid-hline-in-table ---
-// Error: 8-20 cannot use `grid.hline` as a table line; use `table.hline` instead
+// Error: 8-20 cannot use `grid.hline` as a table line
+// Hint: 8-20 use `table.hline` instead
#table(grid.hline())
--- grid-vline-in-table ---
-// Error: 8-20 cannot use `grid.vline` as a table line; use `table.vline` instead
+// Error: 8-20 cannot use `grid.vline` as a table line
+// Hint: 8-20 use `table.vline` instead
#table(grid.vline())
--- grid-hline-end-before-start-1 ---
diff --git a/tests/suite/layout/table.typ b/tests/suite/layout/table.typ
index 7eec46a1..4090ef95 100644
--- a/tests/suite/layout/table.typ
+++ b/tests/suite/layout/table.typ
@@ -262,7 +262,8 @@
}
--- grid-cell-in-table ---
-// Error: 8-19 cannot use `grid.cell` as a table cell; use `table.cell` instead
+// Error: 8-19 cannot use `grid.cell` as a table cell
+// Hint: 8-19 use `table.cell` instead
#table(grid.cell[])
--- issue-183-table-lines ---