18 lines
413 B
Go
18 lines
413 B
Go
package datadictionary_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
"quantex.com/qfixdpl/quickfix/datadictionary"
|
|
)
|
|
|
|
func TestNewGroupField(t *testing.T) {
|
|
ft := datadictionary.NewFieldType("aname", 11, "INT")
|
|
fg := datadictionary.NewGroupFieldDef(ft, true, []datadictionary.MessagePart{})
|
|
assert.NotNil(t, fg)
|
|
assert.Equal(t, "aname", fg.Name())
|
|
assert.Equal(t, true, fg.Required())
|
|
}
|