mirror of
https://github.com/ollama/ollama.git
synced 2026-07-05 07:11:10 +00:00
15 lines
338 B
Go
15 lines
338 B
Go
//go:build windows
|
|
|
|
package tools
|
|
|
|
import (
|
|
"strings"
|
|
"testing"
|
|
)
|
|
|
|
func TestPowerShellCommandScriptUsesWideOutString(t *testing.T) {
|
|
script := powerShellCommandScript("Get-ChildItem", `C:\cwd.txt`)
|
|
if !strings.Contains(script, "Out-String -Stream -Width 4096") {
|
|
t.Fatalf("script = %q, want explicit Out-String width", script)
|
|
}
|
|
}
|