返回 DeepSeek-Reasonix
tray_icon_windows_test.go
根目录 / desktop / tray_icon_windows_test.go
1 //go:build windows
2
3 package main
4
5 import "testing"
6
7 func TestWindowsTrayIconUsesICOBytes(t *testing.T) {
8 if len(trayIconBytes) < 4 {
9 t.Fatalf("tray icon is too small: %d bytes", len(trayIconBytes))
10 }
11 if trayIconBytes[0] != 0x00 || trayIconBytes[1] != 0x00 || trayIconBytes[2] != 0x01 || trayIconBytes[3] != 0x00 {
12 t.Fatalf("Windows tray icon must be ICO bytes, got header % x", trayIconBytes[:4])
13 }
14 }
15
15 lines GO