mirror of
https://github.com/db9979/sshtermy.git
synced 2026-12-06 12:44:08 +01:00
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
16 lines
351 B
Go
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)
|
|
}
|
|
}
|
|
}
|