mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-03 16:35:36 +00:00
05dfceb7e7
Signed-off-by: Elias Naur <mail@eliasnaur.com>
22 lines
363 B
Go
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)
|
|
}
|
|
}
|