14 lines
319 B
Go
14 lines
319 B
Go
//go:build darwin
|
|
|
|
package main
|
|
|
|
import "testing"
|
|
|
|
func TestAppleScriptStringEscapesDialogText(t *testing.T) {
|
|
got := appleScriptString("第一行\n第二行 \"确认\" \\ DCAuth")
|
|
want := `"第一行\n第二行 \"确认\" \\ DCAuth"`
|
|
if got != want {
|
|
t.Fatalf("appleScriptString() = %q, want %q", got, want)
|
|
}
|
|
}
|