You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
232 B

7 years ago
  1. package types
  2. import (
  3. "testing"
  4. "github.com/stretchr/testify/assert"
  5. )
  6. func TestHumanCode(t *testing.T) {
  7. assert.Equal(t, "Internal error", HumanCode(CodeType_InternalError))
  8. assert.Equal(t, "Unknown code", HumanCode(-1))
  9. }