api/server/main_test.go

21 lines
312 B
Go

package main
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestConvertAttribute(t *testing.T) {
var data = map[string]string{
`cgem`: `CGem`,
`ep`: `Ep`,
`PMAX`: `PMax`,
`Test`: `Test`,
}
for in, expected := range data {
assert.Equal(t, expected, convertAttribute(in))
}
}