test HumanCode
This commit is contained in:
parent
1726e82865
commit
2cfad8523a
|
@ -0,0 +1,12 @@
|
|||
package types
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestHumanCode(t *testing.T) {
|
||||
assert.Equal(t, "Internal error", HumanCode(CodeType_InternalError))
|
||||
assert.Equal(t, "Unknown code", HumanCode(-1))
|
||||
}
|
Loading…
Reference in New Issue