1
0
mirror of https://github.com/volatiletech/authboss.git synced 2025-07-15 01:24:33 +02:00

Initial validate module.

This commit is contained in:
Aaron
2015-01-17 23:37:05 -08:00
parent 89875f7b68
commit e4dfe30d02
8 changed files with 462 additions and 4 deletions

13
validation_test.go Normal file
View File

@ -0,0 +1,13 @@
package authboss
import (
"errors"
"testing"
)
func TestErrorList_Error(t *testing.T) {
errList := ErrorList{errors.New("one"), errors.New("two")}
if e := errList.Error(); e != "one, two" {
t.Error("Wrong value for error:", e)
}
}