File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -78,6 +78,28 @@ DataFrameCsvReaderTest >> testReadCsv [
7878 self assert: actualDataFrame equals: dataFrameWithoutRowNames
7979]
8080
81+ { #category : #tests }
82+ DataFrameCsvReaderTest >> testReadCsvWithColumnNamesWithSeparator [
83+
84+ | controlDataFrame customColumnNames |
85+
86+ customColumnNames := #('Col1' 'Col2' 'Col3' 'Col4') .
87+
88+ controlDataFrame := DataFrame
89+ readFromCsv: tabCsvFile
90+ withColumnNames: customColumnNames
91+ separator: Character tab.
92+
93+ self
94+ assertCollection: controlDataFrame columnNames
95+ equals: customColumnNames asOrderedCollection.
96+
97+ " The original header is counted as a normal row now"
98+ self
99+ assert: controlDataFrame size
100+ equals: 6 .
101+ ]
102+
81103{ #category : #tests }
82104DataFrameCsvReaderTest >> testReadCsvWithRowNames [
83105 | actualDataFrame |
You can’t perform that action at this time.
0 commit comments