mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-05 03:20:44 +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