summaryrefslogtreecommitdiff
path: root/test/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/main.go')
-rw-r--r--test/main.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/main.go b/test/main.go
index 9ff01c1..20f5bdf 100644
--- a/test/main.go
+++ b/test/main.go
@@ -59,8 +59,13 @@ func invalidTest(c *Combobox, l *Listbox) {
func() {
defer x("Listbox.Delete > len"); c.Delete(c.Len() + 5); panic(nil)
}()
- // TODO
- _ = l
+ func() {
+ defer x("Listbox.InsertBefore < 0"); l.InsertBefore("xxx", -5); panic(nil)
+ }()
+ func() {
+ defer x("Listbox.InsertBefore > len"); l.InsertBefore("xxx", l.Len() + 5); panic(nil)
+ }()
+ // TODO add Listbox.Delete() tests when I move that over
MsgBox("test", "all working as intended")
}