mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-11 20:31:20 +00:00
test HumanCode
This commit is contained in:
12
types/code_test.go
Normal file
12
types/code_test.go
Normal file
@ -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))
|
||||||
|
}
|
Reference in New Issue
Block a user