Skip to content

Commit 8cf504b

Browse files
Formatted tests for readability.
1 parent 0288224 commit 8cf504b

1 file changed

Lines changed: 5 additions & 13 deletions

File tree

src/DataFrame-Tests/DataFrameTest.class.st

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -301,15 +301,11 @@ DataFrameTest >> testApplyElementwise [
301301
| dataFrame expected |
302302
dataFrame := DataFrame
303303
withRows:
304-
#( #( 1.1 1.7 1.3 )
305-
#( 2.2 2.4 2.8 )
306-
#( 3.5 3.2 3.3 ) )
304+
#( #( 1.1 1.7 1.3 ) #( 2.2 2.4 2.8 ) #( 3.5 3.2 3.3 ) )
307305
rowNames: #( A B C )
308306
columnNames: #( 1 2 3 ).
309307
expected := DataFrame
310-
withRows: #( #( 1 1 1 )
311-
#( 2 2 2 )
312-
#( 3 3 3 ) )
308+
withRows: #( #( 1 1 1 ) #( 2 2 2 ) #( 3 3 3 ) )
313309
rowNames: #( A B C )
314310
columnNames: #( 1 2 3 ).
315311

@@ -322,9 +318,7 @@ DataFrameTest >> testApplyToAllColumns [
322318

323319
| dataFrame actual expected |
324320
dataFrame := DataFrame
325-
withRows: #( #( 1 4 7 )
326-
#( 2 5 8 )
327-
#( 3 6 9 ) )
321+
withRows: #( #( 1 4 7 ) #( 2 5 8 ) #( 3 6 9 ) )
328322
rowNames: #( A B C )
329323
columnNames: #( 1 2 3 ).
330324
expected := DataSeries
@@ -1067,8 +1061,7 @@ DataFrameTest >> testCopyReplaceIn2DCollectionBy [
10671061

10681062
| expected |
10691063
expected := DataFrame withRows:
1070-
#( #( Barcelona 1.609 true )
1071-
#( Dubai 2.789 true )
1064+
#( #( Barcelona 1.609 true ) #( Dubai 2.789 true )
10721065
#( London 8.788 true ) ).
10731066

10741067
expected rowNames: #( A B C ).
@@ -2015,8 +2008,7 @@ DataFrameTest >> testInitializeRows [
20152008

20162009
| anArrayOfRows dataFrame |
20172010
anArrayOfRows := #( #( 'Barcelona' 1.609 true )
2018-
#( 'Dubai' 2.789 true )
2019-
#( 'London' 8.788 false ) ).
2011+
#( 'Dubai' 2.789 true ) #( 'London' 8.788 false ) ).
20202012
dataFrame := DataFrame new.
20212013
dataFrame initializeRows: anArrayOfRows.
20222014
dataFrame rowNames: #( 'A' 'B' 'C' ).

0 commit comments

Comments
 (0)