First commit

This commit is contained in:
Jae Kwon
2015-10-21 12:15:19 -07:00
commit 16372365c4
21 changed files with 1850 additions and 0 deletions

14
test/assert.go Normal file
View File

@ -0,0 +1,14 @@
package test
import (
"testing"
)
func AssertPanics(t *testing.T, msg string, f func()) {
defer func() {
if err := recover(); err == nil {
t.Errorf("Should have panic'd, but didn't: %v", msg)
}
}()
f()
}