@@ -46,6 +46,7 @@ func TestValidate(t *testing.T) {
4646 tcTagSpecifiedWithoutAValueFixT (),
4747 tcTagSpecifiedWithoutAValueValidateHasValues (),
4848 tcTagSpecifiedWithoutAValueFixTValidateHasValues (),
49+ tcTagSpecifiedWithoutAValueValidateHasValuesNoDataDictionary (),
4950 tcInvalidMsgType (),
5051 tcInvalidMsgTypeFixT (),
5152 tcValueIsIncorrect (),
@@ -535,6 +536,26 @@ func tcTagSpecifiedWithoutAValueValidateHasValues() validateTest {
535536 }
536537}
537538
539+ func tcTagSpecifiedWithoutAValueValidateHasValuesNoDataDictionary () validateTest {
540+ settings := defaultValidatorSettings
541+ settings .RejectInvalidMessage = false
542+ settings .CheckFieldsHaveValues = true
543+ validator := NewValidator (settings , nil , nil )
544+ builder := createFIX40NewOrderSingle ()
545+
546+ bogusTag := Tag (109 )
547+ builder .Body .SetField (bogusTag , FIXString ("" ))
548+ msgBytes := builder .build ()
549+
550+ return validateTest {
551+ TestName : "Tag SpecifiedWithoutAValue" ,
552+ Validator : validator ,
553+ MessageBytes : msgBytes ,
554+ ExpectedRejectReason : rejectReasonTagSpecifiedWithoutAValue ,
555+ ExpectedRefTagID : & bogusTag ,
556+ }
557+ }
558+
538559func tcTagSpecifiedWithoutAValueFixT () validateTest {
539560 tDict , _ := datadictionary .Parse ("spec/FIXT11.xml" )
540561 appDict , _ := datadictionary .Parse ("spec/FIX50SP2.xml" )
0 commit comments