adding quickfix library

This commit is contained in:
Ramiro Paz
2026-03-12 12:08:34 -03:00
parent 9e55c5c562
commit c09a1fd21a
1311 changed files with 1887342 additions and 2 deletions

View File

@ -0,0 +1,26 @@
package datadictionary_test
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/quickfixgo/quickfix/datadictionary"
)
func TestNewFieldDef(t *testing.T) {
ft := datadictionary.NewFieldType("aname", 11, "INT")
var tests = []struct {
required bool
}{
{false},
}
for _, test := range tests {
fd := datadictionary.NewFieldDef(ft, test.required)
assert.False(t, fd.IsGroup(), "field def is not a group")
assert.Equal(t, "aname", fd.Name())
assert.Equal(t, test.required, fd.Required())
}
}