summaryrefslogtreecommitdiff
path: root/redo/zz_test.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-07-08 10:00:16 -0400
committerPietro Gagliardi <[email protected]>2014-07-08 10:00:16 -0400
commit8f768d2b911e58b6f90bd3a54d9e9d52c579275f (patch)
tree6ee611ef1fd36510f96b129ccbc5d68065b0bc41 /redo/zz_test.go
parentc40d950654efd84c8f81658ee6cb125e4d90e290 (diff)
Fixed other compilation errors and added a test file. Now to figure out why things are failing at runtime...
Diffstat (limited to 'redo/zz_test.go')
-rw-r--r--redo/zz_test.go26
1 files changed, 26 insertions, 0 deletions
diff --git a/redo/zz_test.go b/redo/zz_test.go
new file mode 100644
index 0000000..122005b
--- /dev/null
+++ b/redo/zz_test.go
@@ -0,0 +1,26 @@
+// 8 july 2014
+
+package ui
+
+// This file is called zz_test.go to keep it separate from the other files in this package (and because go test won't accept just test.go)
+
+import (
+ "testing"
+)
+
+func TestPackage(t *testing.T) {
+ go func() {
+ w := GetNewWindow(Do, "Hello", 320, 240)
+ done := make(chan struct{})
+ Wait(Do, w.OnClosing(func(Doer) bool {
+ done <- struct{}{}
+ return true
+ }))
+ Wait(Do, w.Show())
+ <-done
+ }()
+ err := Go()
+ if err != nil {
+ t.Error(err)
+ }
+}