summaryrefslogtreecommitdiff
path: root/test/main.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-03-09 10:51:01 -0400
committerPietro Gagliardi <[email protected]>2014-03-09 10:51:01 -0400
commitf4506277b94bc2bff4790b6e7cee543b91c44fce (patch)
treec470abac6e0b399ff01393f7033d997ff9b5ae7d /test/main.go
parent3e47b00eda59d3365bc189e5dc23fd0644e2d84a (diff)
Added bounds checks for Listbox.InsertBefore(). This stupid 32-bit Mac bug keeps Listbox.Delete() unchecked for now...
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")
}