Anton Kaliaev
7 years ago
No known key found for this signature in database
GPG Key ID: 7B6881D965918214
1 changed files with
12 additions and
0 deletions
-
types/code_test.go
|
@ -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)) |
|
|
|
|
|
} |