Files
gio/app/clipboard/clipboard_test.go
T
2020-05-13 17:14:58 +02:00

22 lines
363 B
Go

// SPDX-License-Identifier: Unlicense OR MIT
// +build android
package clipboard
import "testing"
func TestClipboard(t *testing.T) {
const want = "Hello, 世界"
if err := Write(want); err != nil {
t.Fatal(err)
}
got, err := Read()
if err != nil {
t.Fatal(err)
}
if got != want {
t.Errorf("read %q from the clipboard, wanted %q", got, want)
}
}