File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ func TestValidate(t *testing.T) {
8585 tcCheckUserDefinedFieldsDisabled (),
8686 tcCheckUserDefinedFieldsDisabledFixT (),
8787 tcMultipleRepeatingGroupFields (),
88+ tcCheckSumValidation (),
8889 }
8990
9091 msg := NewMessage ()
@@ -1179,6 +1180,17 @@ func tcMultipleRepeatingGroupFields() validateTest {
11791180 }
11801181}
11811182
1183+ func tcCheckSumValidation () validateTest {
1184+ dict , _ := datadictionary .Parse ("spec/FIX43.xml" )
1185+ validator := NewValidator (defaultValidatorSettings , dict , nil )
1186+ return validateTest {
1187+ TestName : "Checksum is incorrect" ,
1188+ Validator : validator ,
1189+ MessageBytes : []byte ("8=FIX.4.39=17635=D34=249=TW52=20140329-22:38:4556=ISLD11=ID453=2448=PARTYID452=3523=SUBID448=PARTYID2452=378=179=ACCOUNT80=121=140=154=138=20055=INTC60=20140329-22:38:4510=006" ),
1190+ ExpectParseError : true ,
1191+ }
1192+ }
1193+
11821194func TestValidateVisitField (t * testing.T ) {
11831195 fieldType0 := datadictionary .NewFieldType ("myfield" , 11 , "STRING" )
11841196 fieldDef0 := & datadictionary.FieldDef {FieldType : fieldType0 }
You can’t perform that action at this time.
0 commit comments