Browse Source

test HumanCode

pull/1780/head
Anton Kaliaev 7 years ago
parent
commit
2cfad8523a
No known key found for this signature in database GPG Key ID: 7B6881D965918214
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      types/code_test.go

+ 12
- 0
types/code_test.go View 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))
}

Loading…
Cancel
Save