Skip to content

Commit

Permalink
changed error message
Browse files Browse the repository at this point in the history
  • Loading branch information
mfdeveloper508 committed Jun 14, 2022
1 parent 113e309 commit f287c7c
Show file tree
Hide file tree
Showing 52 changed files with 55 additions and 55 deletions.
2 changes: 1 addition & 1 deletion accountCreditedDrawdown_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func TestParseAccountCreditedDrawdownWrongLength(t *testing.T) {

err := r.parseAccountCreditedDrawdown()

expected := r.parseError(fieldError("DrawdownCreditAccountNumber", ErrValidLengthSize)).Error()
expected := r.parseError(fieldError("DrawdownCreditAccountNumber", ErrValidLength)).Error()
require.EqualError(t, err, expected)
}

Expand Down
2 changes: 1 addition & 1 deletion accountDebitedDrawdown_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func TestParseAccountDebitedDrawdownWrongLength(t *testing.T) {

err := r.parseAccountDebitedDrawdown()

require.EqualError(t, err, r.parseError(fieldError("AddressLineThree", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("AddressLineThree", ErrValidLength)).Error())
}

// TestParseAccountDebitedDrawdownReaderParseError parses a wrong AccountDebitedDrawdown reader parse error
Expand Down
2 changes: 1 addition & 1 deletion actualAmountPaid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func TestParseActualAmountPaidWrongLength(t *testing.T) {

err := r.parseActualAmountPaid()

require.EqualError(t, err, r.parseError(fieldError("Amount", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("Amount", ErrValidLength)).Error())
}

// TestParseActualAmountPaidReaderParseError parses a wrong ActualAmountPaid reader parse error
Expand Down
2 changes: 1 addition & 1 deletion adjustment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func TestParseAdjustmentWrongLength(t *testing.T) {

err := r.parseAdjustment()

require.EqualError(t, err, r.parseError(fieldError("AdditionalInfo", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("AdditionalInfo", ErrValidLength)).Error())
}

// TestParseAdjustmentReaderParseError parses a wrong Adjustment reader parse error
Expand Down
2 changes: 1 addition & 1 deletion amountNegotiatedDiscount_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func TestParseAmountNegotiatedDiscountWrongLength(t *testing.T) {

err := r.parseAmountNegotiatedDiscount()

require.EqualError(t, err, r.parseError(fieldError("Amount", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("Amount", ErrValidLength)).Error())
}

// TestParseAmountNegotiatedDiscountReaderParseError parses a wrong AmountNegotiatedDiscount reader parse error
Expand Down
2 changes: 1 addition & 1 deletion beneficiaryCustomer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func TestParseBeneficiaryCustomerWrongLength(t *testing.T) {

err := r.parseBeneficiaryCustomer()

require.EqualError(t, err, r.parseError(fieldError("SwiftLineFive", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("SwiftLineFive", ErrValidLength)).Error())
}

// TestParseBeneficiaryCustomerReaderParseError parses a wrong BeneficiaryCustomer reader parse error
Expand Down
2 changes: 1 addition & 1 deletion beneficiaryFI_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func TestParseBeneficiaryFIWrongLength(t *testing.T) {

err := r.parseBeneficiaryFI()

require.EqualError(t, err, r.parseError(fieldError("AddressLineThree", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("AddressLineThree", ErrValidLength)).Error())
}

// TestParseBeneficiaryFIReaderParseError parses a wrong BeneficiaryFI reader parse error
Expand Down
2 changes: 1 addition & 1 deletion beneficiaryIntermediaryFI_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func TestParseBeneficiaryIntermediaryFIWrongLength(t *testing.T) {

err := r.parseBeneficiaryIntermediaryFI()

require.EqualError(t, err, r.parseError(fieldError("AddressLineThree", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("AddressLineThree", ErrValidLength)).Error())
}

// TestParseBeneficiaryIntermediaryFIReaderParseError parses a wrong BeneficiaryIntermediaryFI reader parse error
Expand Down
2 changes: 1 addition & 1 deletion beneficiaryReference_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestParseBeneficiaryReferenceWrongLength(t *testing.T) {

err := r.parseBeneficiaryReference()

require.EqualError(t, err, r.parseError(fieldError("BeneficiaryReference", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("BeneficiaryReference", ErrValidLength)).Error())
}

// TestParseBeneficiaryReferenceReaderParseError parses a wrong BeneficiaryReference reader parse error
Expand Down
2 changes: 1 addition & 1 deletion beneficiary_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func TestParseBeneficiaryWrongLength(t *testing.T) {

err := r.parseBeneficiary()

require.EqualError(t, err, r.parseError(fieldError("AddressLineThree", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("AddressLineThree", ErrValidLength)).Error())
}

// TestParseBeneficiaryReaderParseError parses a wrong Beneficiary reader parse error
Expand Down
2 changes: 1 addition & 1 deletion converters.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (c *converters) parseVariableStringField(r string, maxLen int) (got string,

if size > len(r) {
size = 0
err = ErrValidLengthSize
err = ErrValidLength
return
}

Expand Down
2 changes: 1 addition & 1 deletion currencyInstructedAmount.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func (cia *CurrencyInstructedAmount) Parse(record string) error {
length += read

if len(record) < length+18 {
return fieldError("Amount", ErrValidLengthSize)
return fieldError("Amount", ErrValidLength)
}

cia.Amount = cia.parseStringField(record[length : length+18])
Expand Down
4 changes: 2 additions & 2 deletions currencyInstructedAmount_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ func TestParseCurrencyInstructedAmountWrongLength(t *testing.T) {

err := r.parseCurrencyInstructedAmount()

require.EqualError(t, err, r.parseError(fieldError("Amount", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("Amount", ErrValidLength)).Error())

_, err = r.Read()

require.EqualError(t, err, r.parseError(fieldError("Amount", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("Amount", ErrValidLength)).Error())
}

// TestParseCurrencyInstructedAmountReaderParseError parses a wrong CurrencyInstructedAmount reader parse error
Expand Down
4 changes: 2 additions & 2 deletions exchangeRate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ func TestParseExchangeRateWrongLength(t *testing.T) {

err := r.parseExchangeRate()

require.EqualError(t, err, r.parseError(fieldError("ExchangeRate", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("ExchangeRate", ErrValidLength)).Error())

_, err = r.Read()

require.EqualError(t, err, r.parseError(fieldError("ExchangeRate", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("ExchangeRate", ErrValidLength)).Error())
}

// TestParseExchangeRateReaderParseError parses a wrong ExchangeRate reader parse error
Expand Down
2 changes: 1 addition & 1 deletion fIBeneficiaryFIAdvice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func TestParseFIBeneficiaryFIAdviceWrongLength(t *testing.T) {

err := r.parseFIBeneficiaryFIAdvice()

require.EqualError(t, err, r.parseError(fieldError("LineSix", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("LineSix", ErrValidLength)).Error())
}

// TestParseFIBeneficiaryFIAdviceReaderParseError parses a wrong FIBeneficiaryFIAdvice reader parse error
Expand Down
2 changes: 1 addition & 1 deletion fiAdditionalFIToFI_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func TestParseFIAdditionalFIToFIWrongLength(t *testing.T) {
r.line = line

err := r.parseFIAdditionalFIToFI()
require.EqualError(t, err, r.parseError(fieldError("LineSix", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("LineSix", ErrValidLength)).Error())
}

// TestParseFIAdditionalFIToFIReaderParseError parses a wrong FIAdditionalFIToFI reader parse error
Expand Down
2 changes: 1 addition & 1 deletion fiBeneficiaryAdvice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func TestParseFIBeneficiaryAdviceWrongLength(t *testing.T) {

err := r.parseFIBeneficiaryAdvice()

require.EqualError(t, err, r.parseError(fieldError("LineSix", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("LineSix", ErrValidLength)).Error())
}

// TestParseFIBeneficiaryAdviceReaderParseError parses a wrong FIBeneficiaryAdvice reader parse error
Expand Down
2 changes: 1 addition & 1 deletion fiBeneficiaryFI_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func TestParseFIBeneficiaryFIWrongLength(t *testing.T) {

err := r.parseFIBeneficiaryFI()

require.EqualError(t, err, r.parseError(fieldError("LineSix", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("LineSix", ErrValidLength)).Error())
}

// TestParseFIBeneficiaryFIReaderParseError parses a wrong FIBeneficiaryFI reader parse error
Expand Down
2 changes: 1 addition & 1 deletion fiBeneficiary_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func TestParseFIBeneficiaryWrongLength(t *testing.T) {
r.line = line

err := r.parseFIBeneficiary()
require.EqualError(t, err, r.parseError(fieldError("LineSix", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("LineSix", ErrValidLength)).Error())
}

// TestParseFIBeneficiaryReaderParseError parses a wrong FIBeneficiary reader parse error
Expand Down
2 changes: 1 addition & 1 deletion fiDrawdownDebitAccountAdvice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func TestParseFIDrawdownDebitAccountAdviceWrongLength(t *testing.T) {

err := r.parseFIDrawdownDebitAccountAdvice()

require.EqualError(t, err, r.parseError(fieldError("LineSix", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("LineSix", ErrValidLength)).Error())
}

// TestParseFIDrawdownDebitAccountAdviceReaderParseError parses a wrong FIDrawdownDebitAccountAdvice reader parse error
Expand Down
2 changes: 1 addition & 1 deletion fiIntermediaryFIAdvice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func TestParseFIIntermediaryFIAdviceWrongLength(t *testing.T) {
r.line = line

err := r.parseFIIntermediaryFIAdvice()
require.EqualError(t, err, r.parseError(fieldError("LineSix", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("LineSix", ErrValidLength)).Error())
}

// TestParseFIIntermediaryFIAdviceReaderParseError parses a wrong FIIntermediaryFIAdvice reader parse error
Expand Down
2 changes: 1 addition & 1 deletion fiIntermediaryFI_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func TestParseFIIntermediaryFIWrongLength(t *testing.T) {
r.line = line

err := r.parseFIIntermediaryFI()
require.EqualError(t, err, r.parseError(fieldError("LineSix", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("LineSix", ErrValidLength)).Error())
}

// TestParseFIIntermediaryFIReaderParseError parses a wrong FIIntermediaryFI reader parse error
Expand Down
2 changes: 1 addition & 1 deletion fiPaymentMethodToBeneficiary_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func TestParseFIPaymentMethodToBeneficiaryWrongLength(t *testing.T) {
r.line = line

err := r.parseFIPaymentMethodToBeneficiary()
require.EqualError(t, err, r.parseError(fieldError("AdditionalInformation", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("AdditionalInformation", ErrValidLength)).Error())
}

// TestParseFIPaymentMethodToBeneficiaryReaderParseError parses a wrong FIPaymentMethodToBeneficiary reader parse error
Expand Down
2 changes: 1 addition & 1 deletion fiReceiverFI_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func TestParseFIReceiverFIWrongLength(t *testing.T) {
r.line = line

err := r.parseFIReceiverFI()
require.EqualError(t, err, r.parseError(fieldError("LineSix", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("LineSix", ErrValidLength)).Error())
}

// TestParseFIReceiverFIReaderParseError parses a wrong FIReceiverFI reader parse error
Expand Down
4 changes: 2 additions & 2 deletions fieldErrors.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ var (
// ErrOptionFName is returned for an invalid name for OriginatorOptionF
ErrOptionFName = errors.New("is an invalid name for originator optionF")

// ErrValidLengthSize is returned for an field with invalid length
ErrValidLengthSize = errors.New("is an invalid length size")
// ErrValidLength is returned for an field with invalid length
ErrValidLength = errors.New("is an invalid length")
)

// FieldError is returned for errors at a field level in a tag
Expand Down
2 changes: 1 addition & 1 deletion grossAmountRemittanceDocument_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func TestParseGrossAmountRemittanceWrongLength(t *testing.T) {

err := r.parseGrossAmountRemittanceDocument()

require.EqualError(t, err, r.parseError(fieldError("Amount", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("Amount", ErrValidLength)).Error())
}

// TestParseGrossAmountRemittanceReaderParseError parses a wrong GrossAmountRemittance reader parse error
Expand Down
2 changes: 1 addition & 1 deletion institutionAccount_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func TestParseInstitutionAccountWrongLength(t *testing.T) {

err := r.parseInstitutionAccount()

require.EqualError(t, err, r.parseError(fieldError("SwiftLineFive", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("SwiftLineFive", ErrValidLength)).Error())
}

// TestParseInstitutionAccountReaderParseError parses a wrong InstitutionAccount reader parse error
Expand Down
2 changes: 1 addition & 1 deletion instructedAmount_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func TestParseInstructedAmountWrongLength(t *testing.T) {

err := r.parseInstructedAmount()

require.EqualError(t, err, r.parseError(fieldError("Amount", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("Amount", ErrValidLength)).Error())
}

// TestParseInstructedAmountReaderParseError parses a wrong InstructedAmount reader parse error
Expand Down
2 changes: 1 addition & 1 deletion instructingFI_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func TestParseInstructingFIWrongLength(t *testing.T) {

err := r.parseInstructingFI()

require.EqualError(t, err, r.parseError(fieldError("AddressLineThree", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("AddressLineThree", ErrValidLength)).Error())
}

// TestParseInstructingFIReaderParseError parses a wrong InstructingFI reader parse error
Expand Down
2 changes: 1 addition & 1 deletion intermediaryInstitution_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func TestParseIntermediaryInstitutionWrongLength(t *testing.T) {

err := r.parseIntermediaryInstitution()

require.EqualError(t, err, r.parseError(fieldError("SwiftLineFive", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("SwiftLineFive", ErrValidLength)).Error())
}

// TestParseIntermediaryInstitutionReaderParseError parses a wrong IntermediaryInstitution reader parse error
Expand Down
2 changes: 1 addition & 1 deletion localInstrument_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func TestParseLocalInstrumentWrongLength(t *testing.T) {

err := r.parseLocalInstrument()

require.EqualError(t, err, r.parseError(fieldError("ProprietaryCode", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("ProprietaryCode", ErrValidLength)).Error())
}

// TestParseLocalInstrumentReaderParseError parses a wrong LocalInstrumente reader parse error
Expand Down
2 changes: 1 addition & 1 deletion orderingCustomer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func TestParseOrderingCustomerWrongLength(t *testing.T) {

err := r.parseOrderingCustomer()

require.EqualError(t, err, r.parseError(fieldError("SwiftLineFive", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("SwiftLineFive", ErrValidLength)).Error())
}

// TestParseOrderingCustomerReaderParseError parses a wrong OrderingCustomer reader parse error
Expand Down
2 changes: 1 addition & 1 deletion orderingInstitution_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func TestParseOrderingInstitutionWrongLength(t *testing.T) {
r.line = line

err := r.parseOrderingInstitution()
require.EqualError(t, err, r.parseError(fieldError("SwiftLineFive", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("SwiftLineFive", ErrValidLength)).Error())
}

// TestParseOrderingInstitutionReaderParseError parses a wrong OrderingInstitution reader parse error
Expand Down
2 changes: 1 addition & 1 deletion originatorFI_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func TestParseOriginatorFIWrongLength(t *testing.T) {

err := r.parseOriginatorFI()

require.EqualError(t, err, r.parseError(fieldError("AddressLineThree", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("AddressLineThree", ErrValidLength)).Error())
}

// TestParseOriginatorFIReaderParseError parses a wrong OriginatorFI reader parse error
Expand Down
2 changes: 1 addition & 1 deletion originatorOptionF_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func TestParseOriginatorOptionFWrongLength(t *testing.T) {

err := r.parseOriginatorOptionF()

require.EqualError(t, err, r.parseError(fieldError("LineThree", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("LineThree", ErrValidLength)).Error())
}

// TestParseOriginatorOptionFReaderParseError parses a wrong OriginatorOptionF reader parse error
Expand Down
2 changes: 1 addition & 1 deletion originatorToBeneficiary_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func TestParseOriginatorToBeneficiaryWrongLength(t *testing.T) {

err := r.parseOriginatorToBeneficiary()

require.EqualError(t, err, r.parseError(fieldError("LineFour", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("LineFour", ErrValidLength)).Error())
}

// TestParseOriginatorToBeneficiaryReaderParseError parses a wrong OriginatorToBeneficiary reader parse error
Expand Down
2 changes: 1 addition & 1 deletion originator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func TestParseOriginatorWrongLength(t *testing.T) {

err := r.parseOriginator()

require.EqualError(t, err, r.parseError(fieldError("AddressLineThree", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("AddressLineThree", ErrValidLength)).Error())
}

// TestParseOriginatorReaderParseError parses a wrong Originator reader parse error
Expand Down
2 changes: 1 addition & 1 deletion outputMessageAccountabilityData.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (omad *OutputMessageAccountabilityData) Parse(record string) error {
length += read

if len(record) < length+6 {
return fieldError("OutputSequenceNumber", ErrValidLengthSize)
return fieldError("OutputSequenceNumber", ErrValidLength)
}

omad.OutputSequenceNumber = record[length : length+6]
Expand Down
2 changes: 1 addition & 1 deletion paymentNotification_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func TestParsePaymentNotificationWrongLength(t *testing.T) {

err := r.parsePaymentNotification()

require.EqualError(t, err, r.parseError(fieldError("EndToEndIdentification", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("EndToEndIdentification", ErrValidLength)).Error())
}

// TestParsePaymentNotificationReaderParseError parses a wrong PaymentNotification reader parse error
Expand Down
2 changes: 1 addition & 1 deletion previousMessageIdentifier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestParsePreviousMessageIdentifierWrongLength(t *testing.T) {

err := r.parsePreviousMessageIdentifier()

require.EqualError(t, err, r.parseError(fieldError("PreviousMessageIdentifier", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("PreviousMessageIdentifier", ErrValidLength)).Error())
}

// TestParsePreviousMessageIdentifierReaderParseError parses a wrong PreviousMessageIdentifier reader parse error
Expand Down
2 changes: 1 addition & 1 deletion primaryRemittanceDocument_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func TestParsePrimaryRemittanceDocumentWrongLength(t *testing.T) {

err := r.parsePrimaryRemittanceDocument()

require.EqualError(t, err, r.parseError(fieldError("Issuer", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("Issuer", ErrValidLength)).Error())
}

// TestParsePrimaryRemittanceDocumentReaderParseError parses a wrong PrimaryRemittanceDocument reader parse error
Expand Down
2 changes: 1 addition & 1 deletion relatedRemittance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func TestParseRelatedRemittanceWrongLength(t *testing.T) {

err := r.parseRelatedRemittance()

require.EqualError(t, err, r.parseError(fieldError("AddressLineSeven", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("AddressLineSeven", ErrValidLength)).Error())
}

// TestParseRelatedRemittanceReaderParseError parses a wrong RelatedRemittance reader parse error
Expand Down
2 changes: 1 addition & 1 deletion remittanceBeneficiary_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ func TestParseRemittanceBeneficiaryWrongLength(t *testing.T) {

err := r.parseRemittanceBeneficiary()

require.EqualError(t, err, r.parseError(fieldError("AddressLineSeven", ErrValidLengthSize)).Error())
require.EqualError(t, err, r.parseError(fieldError("AddressLineSeven", ErrValidLength)).Error())
}

// TestParseRemittanceBeneficiaryReaderParseError parses a wrong RemittanceBeneficiary reader parse error
Expand Down
Loading

0 comments on commit f287c7c

Please sign in to comment.