aboutsummaryrefslogtreecommitdiff
path: root/internal/ui/table_test.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-05 17:05:14 -0400
committerhistoria <[not public]>2026-10-05 17:05:14 -0400
commite42952469dadfb3535633c66c881050ac128703c (patch)
treea78f7396b72cdbd6fa4f6c454c830f40cf2ad0cb /internal/ui/table_test.go
parent90ad8c0c33b519d5830c69d4128bdc984b5e9de8 (diff)
downloadthehouseoficarus-e42952469dadfb3535633c66c881050ac128703c.tar.gz
fix: gather verbs, walk oom, admin path bypass, roulette refund
Diffstat (limited to 'internal/ui/table_test.go')
-rw-r--r--internal/ui/table_test.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/internal/ui/table_test.go b/internal/ui/table_test.go
index 68b6d32..170af5c 100644
--- a/internal/ui/table_test.go
+++ b/internal/ui/table_test.go
@@ -54,6 +54,17 @@ func TestTableFitsWithinWidth(t *testing.T) {
}
}
+func TestTableLongTitleStaysWithinBorder(t *testing.T) {
+ // A title longer than the column-derived interior must be truncated, not
+ // allowed to overhang the border.
+ tt := &Table{
+ Title: "What would you like to smelt?",
+ Columns: []string{"", "Bronze bar"},
+ Rows: [][]string{{"1", "Bronze bar"}},
+ }
+ renderWidths(t, tt, true, 0)
+}
+
func TestTableNoMutation(t *testing.T) {
tt := &Table{
Title: "T",