Skip to content

Commit 191fa40

Browse files
committed
Update CSVimportEdgeCasesTESTS.bas
1 parent 4cdb2cb commit 191fa40

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Tests/CSVimportEdgeCasesTESTS.bas

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,12 @@ Function ImportTests(FullFileName As String, _
408408
WhitespaceAtEdgesOfUnquotedField ReadMode
409409
.IsEqual ActualResult, ExpectedResult, "Expected 1 record with 3 fields"
410410
End With
411+
'@--------------------------------------------------------------------------------
412+
'Quoted field with 5 quotes in a row and a delimiter
413+
With ImportTests.test("Quoted field with 5 quotes in a row and a delimiter")
414+
QuotedFieldWith5QuotesInARowAndADelimiter ReadMode
415+
.IsEqual ActualResult, ExpectedResult, "Expected 1 record with 3 fields"
416+
End With
411417
Set ImportTests = Nothing
412418
End Function
413419
Sub GetActualAndExpectedResults(FileName As String, _
@@ -710,6 +716,11 @@ Sub WhitespaceAtEdgesOfUnquotedField(Optional ReadMode As ImportMode = ImportMod
710716

711717
GetActualAndExpectedResults "Whitespace at edges of unquoted field.csv", "a, b ,c", ReadMode
712718
End Sub
719+
Sub QuotedFieldWith5QuotesInARowAndADelimiter(Optional ReadMode As ImportMode = ImportMode.iStream)
720+
Set confObj = New parserConfig
721+
722+
GetActualAndExpectedResults "Quoted field with 5 quotes in a row and a delimiter.csv", "1,cnonce=''''?nc='''',2", ReadMode
723+
End Sub
713724
'/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
714725
'#
715726

0 commit comments

Comments
 (0)