mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-02 01:52:16 +00:00
13 lines
232 B
Go
13 lines
232 B
Go
|
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))
|
||
|
}
|