返回 DeepSeek-Reasonix
app_platform_test.go
根目录 / desktop / app_platform_test.go
1 package main
2
3 import (
4 "runtime"
5 "testing"
6 )
7
8 func TestAppPlatformReturnsRuntimeGOOS(t *testing.T) {
9 app := NewApp()
10
11 if got := app.Platform(); got != runtime.GOOS {
12 t.Fatalf("Platform() = %q, want %q", got, runtime.GOOS)
13 }
14 }
15
15 lines GO