summaryrefslogtreecommitdiff
path: root/internal/showcase/showcase_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-11 22:27:41 +0200
committerPaul Buetow <paul@buetow.org>2026-03-11 22:27:41 +0200
commit33c4f73deb57725b173402a5336138c481d083c0 (patch)
treedbf2d33a0a49e6d33d58f31b49434ff48a8b4fd2 /internal/showcase/showcase_test.go
parentc5ecbb89cf4035923fab6c3bd20ebe6cbcd06d49 (diff)
fix(showcase): rebalance scoring and compact historyv0.15.3
Diffstat (limited to 'internal/showcase/showcase_test.go')
-rw-r--r--internal/showcase/showcase_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/showcase/showcase_test.go b/internal/showcase/showcase_test.go
index 7d095c0..8bcad88 100644
--- a/internal/showcase/showcase_test.go
+++ b/internal/showcase/showcase_test.go
@@ -111,16 +111,16 @@ func TestFormatGemtext_IncludesRankHistoryInHeader(t *testing.T) {
Name: "alpha",
Summary: "alpha summary",
RankHistory: []RepoRankHistory{
- {Spot: 1, Anchor: "now"},
- {Spot: 2, Anchor: "1w", Arrow: "↑"},
- {Spot: 2, Anchor: "2w", Arrow: "="},
+ {Spot: 2, Anchor: "now"},
+ {Spot: 3, Anchor: "1w", Arrow: "↖"},
+ {Spot: 3, Anchor: "2w", Arrow: "←"},
{Spot: 0, Anchor: "3w", Arrow: "·"},
- {Spot: 4, Anchor: "4w", Arrow: "↓"},
+ {Spot: 2, Anchor: "4w", Arrow: "↙"},
},
},
})
- if !strings.Contains(content, "### 1. alpha · #1↑#2=#2↓#4") {
+ if !strings.Contains(content, "### 1. alpha 2↖3←3↙2") {
t.Fatalf("rank history was not rendered in header: %s", content)
}
}