adding quickfix library
This commit is contained in:
17
quickfix/datadictionary/group_field_def_test.go
Normal file
17
quickfix/datadictionary/group_field_def_test.go
Normal file
@ -0,0 +1,17 @@
|
||||
package datadictionary_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"github.com/quickfixgo/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())
|
||||
}
|
||||
Reference in New Issue
Block a user