Unmarshal error for repeating Group
Created by: cbusbey
package quickfix_test
import (
"github.com/quickfixgo/quickfix"
"github.com/quickfixgo/quickfix/fix50sp1/marketdatarequest"
"testing"
)
func Test_Unmarshal(t *testing.T) {
rawFix := []byte("8=FIXT.1.1^A9=117^A35=V^A34=2^A49=MDC^A52=20160419-22:58:50.947^A56=KMD^A262=req_A^A263=0^A264=5^A146=1^A48=DORZ17^A22=99^A267=3^A269=0^A269=1^A269=2^A10=194^A")
fixMsg, _ := quickfix.ParseMessage(rawFix)
var msg marketdatarequest.Message
err := quickfix.Unmarshal(fixMsg, &msg)
if err != nil {
t.Errorf("unexpected error %v\n", err)
t.Errorf("reftag %v\n", *err.RefTagID())
}
}
Fails with
--- FAIL: Test_Something (0.00s)
blah_test.go:18: unexpected error Incorrect data format for value
blah_test.go:19: reftag 146
FAIL
FAIL command-line-arguments 0.009s