Files
sshtermy/internal/update/update_test.go
T
Claude db99520c08 sshTermy 1.0: SSH-Terminal mit KI-Copilot
Verbindungs-Manager mit verschlüsseltem Store (AES-256-GCM, Argon2id, DPAPI),
SSH-Terminal (x/vt), Tunnel -L/-R/-D und Web-Services, KI-Copilot für
OpenAI-kompatible Endpunkte (Ghost-Text, Folgebefehle, Ziel-Modus, Frage)
mit festen Gefahrenregeln, Versionierung und signiertes Auto-Update.

Idee: Dominik Bornhäußer

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018i4GUgYsYk78PSL5QZPeim
2026-11-05 08:11:50 +00:00

16 lines
351 B
Go

package update
import "testing"
func TestNewer(t *testing.T) {
cases := []struct {
a, b string
want bool
}{{"1.0.10", "1.0.9", true}, {"1.0.9", "1.0.10", false}, {"1.1.0", "dev", true}, {"x", "1.0.0", false}, {"1.0.0", "1.0.0", false}}
for _, c := range cases {
if Newer(c.a, c.b) != c.want {
t.Errorf("Newer(%s,%s)", c.a, c.b)
}
}
}