Files
Reims-Go/internal/host/open_windows_test.go
T

14 lines
360 B
Go

//go:build windows
package host
import "testing"
func TestRevealExplorerCommandLine(t *testing.T) {
const path = `C:\Reims data\reports\diag, 你好.zip`
const want = `explorer.exe /select,"C:\Reims data\reports\diag, 你好.zip"`
if got := explorerSelectCommandLine(path); got != want {
t.Fatalf("Explorer command line = %q, want %q", got, want)
}
}