mirror of
https://github.com/db9979/sshtermy.git
synced 2026-12-06 12:44:08 +01:00
- internal/changelog: eingebauter Changelog, F12 → w und Palette; nach einem Update zeigt der erste Start einmal die Neuerungen seit der letzten Version. - tools/changelog: erzeugt CHANGELOG.md und Release-Notizen in der Release-Pipeline aus den PRs (Abschnitt „## Was ist neu“, sonst PR-Titel). - PR-Vorlage mit Abschnitt „Was ist neu“. - Nach installiertem Update automatisch beenden und neu starten (Unix: exec, Windows: neue .exe im selben Konsolenfenster); offene SSH-Sitzungen werden vorher abgefragt, sonst Neustart später über F12/Palette. - update: Programmpfad beim Start merken, .old-Dateien robust aufräumen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018i4GUfsxEdeoedxsLPdZtN
19 lines
648 B
Go
19 lines
648 B
Go
package main
|
|
|
|
import "testing"
|
|
|
|
func TestNewsSection(t *testing.T) {
|
|
body := "<!-- claude -->\n## Zusammenfassung\n- intern umgebaut\n\n## Was ist neu\n<!-- Hinweis -->\n- Changelog in der App\n* Neustart nach Update\n\n## Test\n- go test\n"
|
|
items, found := newsSection(body)
|
|
if !found || len(items) != 2 || items[0] != "Changelog in der App" || items[1] != "Neustart nach Update" {
|
|
t.Fatalf("%v %v", found, items)
|
|
}
|
|
items, found = newsSection("## Was ist neu\n- intern\n")
|
|
if !found || len(items) != 0 {
|
|
t.Fatalf("intern: %v %v", found, items)
|
|
}
|
|
if _, found = newsSection("## Summary\n- x\n"); found {
|
|
t.Fatal("ohne Abschnitt")
|
|
}
|
|
}
|