Skip to content

Commit 56d9923

Browse files
author
Hernán Morales Durand
committed
Add shuffleBy:
Add test
1 parent b8d743e commit 56d9923

18 files changed

Lines changed: 1118 additions & 1039 deletions

src/DataFrame-Tests/DataFrameAggrGroupTest.class.st

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
Class {
2-
#name : #DataFrameAggrGroupTest,
3-
#superclass : #TestCase,
2+
#name : 'DataFrameAggrGroupTest',
3+
#superclass : 'TestCase',
44
#instVars : [
55
'df'
66
],
7-
#category : #'DataFrame-Tests-Core'
7+
#category : 'DataFrame-Tests-Core',
8+
#package : 'DataFrame-Tests',
9+
#tag : 'Core'
810
}
911

10-
{ #category : #running }
12+
{ #category : 'running' }
1113
DataFrameAggrGroupTest >> setUp [
1214

1315
super setUp.
@@ -19,7 +21,7 @@ DataFrameAggrGroupTest >> setUp [
1921
df columnNames: #( total_bill tip sex smoker day time size )
2022
]
2123

22-
{ #category : #tests }
24+
{ #category : 'tests' }
2325
DataFrameAggrGroupTest >> testGroupByAggregateArrayMultipleUsingAsSelector [
2426
| expected actual |
2527

@@ -42,7 +44,7 @@ DataFrameAggrGroupTest >> testGroupByAggregateArrayMultipleUsingAsSelector [
4244
self assert: actual equals: expected
4345
]
4446

45-
{ #category : #tests }
47+
{ #category : 'tests' }
4648
DataFrameAggrGroupTest >> testGroupByAggregateArrayUsingAsBlock [
4749
| expected actual |
4850

@@ -58,7 +60,7 @@ DataFrameAggrGroupTest >> testGroupByAggregateArrayUsingAsBlock [
5860
self assert: actual equals: expected
5961
]
6062

61-
{ #category : #tests }
63+
{ #category : 'tests' }
6264
DataFrameAggrGroupTest >> testGroupByAggregateArrayUsingAsNoSuchAggregateColumnError [
6365
self
6466
should: [
@@ -67,7 +69,7 @@ DataFrameAggrGroupTest >> testGroupByAggregateArrayUsingAsNoSuchAggregateColumnE
6769
raise: Error
6870
]
6971

70-
{ #category : #tests }
72+
{ #category : 'tests' }
7173
DataFrameAggrGroupTest >> testGroupByAggregateArrayUsingAsNoSuchGroupColumnError [
7274
self
7375
should: [
@@ -76,7 +78,7 @@ DataFrameAggrGroupTest >> testGroupByAggregateArrayUsingAsNoSuchGroupColumnError
7678
raise: Error
7779
]
7880

79-
{ #category : #tests }
81+
{ #category : 'tests' }
8082
DataFrameAggrGroupTest >> testGroupByAggregateArrayUsingAsSameColumnError [
8183
self
8284
should: [
@@ -85,7 +87,7 @@ DataFrameAggrGroupTest >> testGroupByAggregateArrayUsingAsSameColumnError [
8587
raise: Error
8688
]
8789

88-
{ #category : #tests }
90+
{ #category : 'tests' }
8991
DataFrameAggrGroupTest >> testGroupByAggregateArrayUsingAsSelector [
9092
| expected actual |
9193

@@ -101,7 +103,7 @@ DataFrameAggrGroupTest >> testGroupByAggregateArrayUsingAsSelector [
101103
self assert: actual equals: expected
102104
]
103105

104-
{ #category : #tests }
106+
{ #category : 'tests' }
105107
DataFrameAggrGroupTest >> testGroupByAggregateArrayUsingBlock [
106108
| expected actual |
107109

@@ -117,7 +119,7 @@ DataFrameAggrGroupTest >> testGroupByAggregateArrayUsingBlock [
117119
self assert: actual equals: expected
118120
]
119121

120-
{ #category : #tests }
122+
{ #category : 'tests' }
121123
DataFrameAggrGroupTest >> testGroupByAggregateArrayUsingSelector [
122124
| expected actual |
123125

@@ -133,7 +135,7 @@ DataFrameAggrGroupTest >> testGroupByAggregateArrayUsingSelector [
133135
self assert: actual equals: expected
134136
]
135137

136-
{ #category : #tests }
138+
{ #category : 'tests' }
137139
DataFrameAggrGroupTest >> testGroupByAggregateUsingAsBlock [
138140
| expected actual |
139141

@@ -151,7 +153,7 @@ DataFrameAggrGroupTest >> testGroupByAggregateUsingAsBlock [
151153
self assert: actual equals: expected
152154
]
153155

154-
{ #category : #tests }
156+
{ #category : 'tests' }
155157
DataFrameAggrGroupTest >> testGroupByAggregateUsingAsNoSuchAggregateColumnError [
156158
self
157159
should: [
@@ -162,7 +164,7 @@ DataFrameAggrGroupTest >> testGroupByAggregateUsingAsNoSuchAggregateColumnError
162164
raise: Error
163165
]
164166

165-
{ #category : #tests }
167+
{ #category : 'tests' }
166168
DataFrameAggrGroupTest >> testGroupByAggregateUsingAsNoSuchGroupColumnError [
167169
self
168170
should: [
@@ -173,7 +175,7 @@ DataFrameAggrGroupTest >> testGroupByAggregateUsingAsNoSuchGroupColumnError [
173175
raise: Error
174176
]
175177

176-
{ #category : #tests }
178+
{ #category : 'tests' }
177179
DataFrameAggrGroupTest >> testGroupByAggregateUsingAsSameColumnError [
178180
self
179181
should: [
@@ -184,7 +186,7 @@ DataFrameAggrGroupTest >> testGroupByAggregateUsingAsSameColumnError [
184186
raise: Error
185187
]
186188

187-
{ #category : #tests }
189+
{ #category : 'tests' }
188190
DataFrameAggrGroupTest >> testGroupByAggregateUsingAsSelector [
189191
| expected actual |
190192

@@ -202,7 +204,7 @@ DataFrameAggrGroupTest >> testGroupByAggregateUsingAsSelector [
202204
self assert: actual equals: expected
203205
]
204206

205-
{ #category : #tests }
207+
{ #category : 'tests' }
206208
DataFrameAggrGroupTest >> testGroupByAggregateUsingBlock [
207209
| expected actual |
208210

@@ -219,7 +221,7 @@ DataFrameAggrGroupTest >> testGroupByAggregateUsingBlock [
219221
self assert: actual equals: expected
220222
]
221223

222-
{ #category : #tests }
224+
{ #category : 'tests' }
223225
DataFrameAggrGroupTest >> testGroupByAggregateUsingNoSuchAggregateColumnError [
224226
self
225227
should: [
@@ -229,7 +231,7 @@ DataFrameAggrGroupTest >> testGroupByAggregateUsingNoSuchAggregateColumnError [
229231
raise: Error
230232
]
231233

232-
{ #category : #tests }
234+
{ #category : 'tests' }
233235
DataFrameAggrGroupTest >> testGroupByAggregateUsingNoSuchGroupColumnError [
234236
self
235237
should: [
@@ -239,7 +241,7 @@ DataFrameAggrGroupTest >> testGroupByAggregateUsingNoSuchGroupColumnError [
239241
raise: Error
240242
]
241243

242-
{ #category : #tests }
244+
{ #category : 'tests' }
243245
DataFrameAggrGroupTest >> testGroupByAggregateUsingSameColumnError [
244246
self
245247
should: [
@@ -249,7 +251,7 @@ DataFrameAggrGroupTest >> testGroupByAggregateUsingSameColumnError [
249251
raise: Error
250252
]
251253

252-
{ #category : #tests }
254+
{ #category : 'tests' }
253255
DataFrameAggrGroupTest >> testGroupByAggregateUsingSelector [
254256
| expected actual |
255257

src/DataFrame-Tests/DataFrameHeadTailTest.class.st

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
Class {
2-
#name : #DataFrameHeadTailTest,
3-
#superclass : #TestCase,
2+
#name : 'DataFrameHeadTailTest',
3+
#superclass : 'TestCase',
44
#instVars : [
55
'df',
66
'series'
77
],
8-
#category : #'DataFrame-Tests-Core'
8+
#category : 'DataFrame-Tests-Core',
9+
#package : 'DataFrame-Tests',
10+
#tag : 'Core'
911
}
1012

11-
{ #category : #running }
13+
{ #category : 'running' }
1214
DataFrameHeadTailTest >> setUp [
1315

1416
super setUp.
@@ -21,7 +23,7 @@ DataFrameHeadTailTest >> setUp [
2123
series := df column: #sepalLength
2224
]
2325

24-
{ #category : #tests }
26+
{ #category : 'tests' }
2527
DataFrameHeadTailTest >> testDataFrameHead [
2628

2729
| actual expected |
@@ -40,7 +42,7 @@ DataFrameHeadTailTest >> testDataFrameHead [
4042
self assert: actual equals: expected
4143
]
4244

43-
{ #category : #tests }
45+
{ #category : 'tests' }
4446
DataFrameHeadTailTest >> testDataFrameHeadN [
4547

4648
| actual expected |
@@ -57,7 +59,7 @@ DataFrameHeadTailTest >> testDataFrameHeadN [
5759
self assert: actual equals: expected
5860
]
5961

60-
{ #category : #tests }
62+
{ #category : 'tests' }
6163
DataFrameHeadTailTest >> testDataFrameTail [
6264

6365
| actual expected rows |
@@ -79,7 +81,7 @@ DataFrameHeadTailTest >> testDataFrameTail [
7981
self assert: actual equals: expected
8082
]
8183

82-
{ #category : #tests }
84+
{ #category : 'tests' }
8385
DataFrameHeadTailTest >> testDataFrameTailN [
8486

8587
| actual expected rows |
@@ -99,7 +101,7 @@ DataFrameHeadTailTest >> testDataFrameTailN [
99101
self assert: actual equals: expected
100102
]
101103

102-
{ #category : #tests }
104+
{ #category : 'tests' }
103105
DataFrameHeadTailTest >> testDefaultHeadTailSize [
104106

105107
self assert: df defaultHeadTailSize equals: 5

0 commit comments

Comments
 (0)