Ariver
2026-07-12 24f551a39eae849d891da26cc91f90d354e3a2db
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package main
 
import "testing"
 
func TestAppDisplayVersionUsesVersionAndBuild(t *testing.T) {
    origVersion := appVersion
    origBuild := appBuild
    t.Cleanup(func() {
        appVersion = origVersion
        appBuild = origBuild
    })
 
    appVersion = "9.8.7"
    appBuild = "20260709.0200"
 
    if got, want := appDisplayVersion(), "9.8.7 (build 20260709.0200)"; got != want {
        t.Fatalf("appDisplayVersion() = %q, want %q", got, want)
    }
}