Skip to content

Commit c4df4c1

Browse files
author
Hernán Morales Durand
committed
Adapted test to work around different RNG implementation in Pharo versions 12 and above
1 parent 07d97ca commit c4df4c1

8 files changed

+700
-669
lines changed

src/DataFrame-Tests/DataFrameAggrGroupTest.class.st

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

12-
{ #category : 'running' }
10+
{ #category : #running }
1311
DataFrameAggrGroupTest >> setUp [
1412

1513
super setUp.
@@ -21,7 +19,7 @@ DataFrameAggrGroupTest >> setUp [
2119
df columnNames: #( total_bill tip sex smoker day time size )
2220
]
2321

24-
{ #category : 'tests' }
22+
{ #category : #tests }
2523
DataFrameAggrGroupTest >> testGroupByAggregateArrayMultipleUsingAsSelector [
2624
| expected actual |
2725

@@ -44,7 +42,7 @@ DataFrameAggrGroupTest >> testGroupByAggregateArrayMultipleUsingAsSelector [
4442
self assert: actual equals: expected
4543
]
4644

47-
{ #category : 'tests' }
45+
{ #category : #tests }
4846
DataFrameAggrGroupTest >> testGroupByAggregateArrayUsingAsBlock [
4947
| expected actual |
5048

@@ -60,7 +58,7 @@ DataFrameAggrGroupTest >> testGroupByAggregateArrayUsingAsBlock [
6058
self assert: actual equals: expected
6159
]
6260

63-
{ #category : 'tests' }
61+
{ #category : #tests }
6462
DataFrameAggrGroupTest >> testGroupByAggregateArrayUsingAsNoSuchAggregateColumnError [
6563
self
6664
should: [
@@ -69,7 +67,7 @@ DataFrameAggrGroupTest >> testGroupByAggregateArrayUsingAsNoSuchAggregateColumnE
6967
raise: Error
7068
]
7169

72-
{ #category : 'tests' }
70+
{ #category : #tests }
7371
DataFrameAggrGroupTest >> testGroupByAggregateArrayUsingAsNoSuchGroupColumnError [
7472
self
7573
should: [
@@ -78,7 +76,7 @@ DataFrameAggrGroupTest >> testGroupByAggregateArrayUsingAsNoSuchGroupColumnError
7876
raise: Error
7977
]
8078

81-
{ #category : 'tests' }
79+
{ #category : #tests }
8280
DataFrameAggrGroupTest >> testGroupByAggregateArrayUsingAsSameColumnError [
8381
self
8482
should: [
@@ -87,7 +85,7 @@ DataFrameAggrGroupTest >> testGroupByAggregateArrayUsingAsSameColumnError [
8785
raise: Error
8886
]
8987

90-
{ #category : 'tests' }
88+
{ #category : #tests }
9189
DataFrameAggrGroupTest >> testGroupByAggregateArrayUsingAsSelector [
9290
| expected actual |
9391

@@ -103,7 +101,7 @@ DataFrameAggrGroupTest >> testGroupByAggregateArrayUsingAsSelector [
103101
self assert: actual equals: expected
104102
]
105103

106-
{ #category : 'tests' }
104+
{ #category : #tests }
107105
DataFrameAggrGroupTest >> testGroupByAggregateArrayUsingBlock [
108106
| expected actual |
109107

@@ -119,7 +117,7 @@ DataFrameAggrGroupTest >> testGroupByAggregateArrayUsingBlock [
119117
self assert: actual equals: expected
120118
]
121119

122-
{ #category : 'tests' }
120+
{ #category : #tests }
123121
DataFrameAggrGroupTest >> testGroupByAggregateArrayUsingSelector [
124122
| expected actual |
125123

@@ -135,7 +133,7 @@ DataFrameAggrGroupTest >> testGroupByAggregateArrayUsingSelector [
135133
self assert: actual equals: expected
136134
]
137135

138-
{ #category : 'tests' }
136+
{ #category : #tests }
139137
DataFrameAggrGroupTest >> testGroupByAggregateUsingAsBlock [
140138
| expected actual |
141139

@@ -153,7 +151,7 @@ DataFrameAggrGroupTest >> testGroupByAggregateUsingAsBlock [
153151
self assert: actual equals: expected
154152
]
155153

156-
{ #category : 'tests' }
154+
{ #category : #tests }
157155
DataFrameAggrGroupTest >> testGroupByAggregateUsingAsNoSuchAggregateColumnError [
158156
self
159157
should: [
@@ -164,7 +162,7 @@ DataFrameAggrGroupTest >> testGroupByAggregateUsingAsNoSuchAggregateColumnError
164162
raise: Error
165163
]
166164

167-
{ #category : 'tests' }
165+
{ #category : #tests }
168166
DataFrameAggrGroupTest >> testGroupByAggregateUsingAsNoSuchGroupColumnError [
169167
self
170168
should: [
@@ -175,7 +173,7 @@ DataFrameAggrGroupTest >> testGroupByAggregateUsingAsNoSuchGroupColumnError [
175173
raise: Error
176174
]
177175

178-
{ #category : 'tests' }
176+
{ #category : #tests }
179177
DataFrameAggrGroupTest >> testGroupByAggregateUsingAsSameColumnError [
180178
self
181179
should: [
@@ -186,7 +184,7 @@ DataFrameAggrGroupTest >> testGroupByAggregateUsingAsSameColumnError [
186184
raise: Error
187185
]
188186

189-
{ #category : 'tests' }
187+
{ #category : #tests }
190188
DataFrameAggrGroupTest >> testGroupByAggregateUsingAsSelector [
191189
| expected actual |
192190

@@ -204,7 +202,7 @@ DataFrameAggrGroupTest >> testGroupByAggregateUsingAsSelector [
204202
self assert: actual equals: expected
205203
]
206204

207-
{ #category : 'tests' }
205+
{ #category : #tests }
208206
DataFrameAggrGroupTest >> testGroupByAggregateUsingBlock [
209207
| expected actual |
210208

@@ -221,7 +219,7 @@ DataFrameAggrGroupTest >> testGroupByAggregateUsingBlock [
221219
self assert: actual equals: expected
222220
]
223221

224-
{ #category : 'tests' }
222+
{ #category : #tests }
225223
DataFrameAggrGroupTest >> testGroupByAggregateUsingNoSuchAggregateColumnError [
226224
self
227225
should: [
@@ -231,7 +229,7 @@ DataFrameAggrGroupTest >> testGroupByAggregateUsingNoSuchAggregateColumnError [
231229
raise: Error
232230
]
233231

234-
{ #category : 'tests' }
232+
{ #category : #tests }
235233
DataFrameAggrGroupTest >> testGroupByAggregateUsingNoSuchGroupColumnError [
236234
self
237235
should: [
@@ -241,7 +239,7 @@ DataFrameAggrGroupTest >> testGroupByAggregateUsingNoSuchGroupColumnError [
241239
raise: Error
242240
]
243241

244-
{ #category : 'tests' }
242+
{ #category : #tests }
245243
DataFrameAggrGroupTest >> testGroupByAggregateUsingSameColumnError [
246244
self
247245
should: [
@@ -251,7 +249,7 @@ DataFrameAggrGroupTest >> testGroupByAggregateUsingSameColumnError [
251249
raise: Error
252250
]
253251

254-
{ #category : 'tests' }
252+
{ #category : #tests }
255253
DataFrameAggrGroupTest >> testGroupByAggregateUsingSelector [
256254
| expected actual |
257255

src/DataFrame-Tests/DataFrameHeadTailTest.class.st

+9-11
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
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',
9-
#package : 'DataFrame-Tests',
10-
#tag : 'Core'
8+
#category : 'DataFrame-Tests-Core'
119
}
1210

13-
{ #category : 'running' }
11+
{ #category : #running }
1412
DataFrameHeadTailTest >> setUp [
1513

1614
super setUp.
@@ -23,7 +21,7 @@ DataFrameHeadTailTest >> setUp [
2321
series := df column: #sepalLength
2422
]
2523

26-
{ #category : 'tests' }
24+
{ #category : #tests }
2725
DataFrameHeadTailTest >> testDataFrameHead [
2826

2927
| actual expected |
@@ -42,7 +40,7 @@ DataFrameHeadTailTest >> testDataFrameHead [
4240
self assert: actual equals: expected
4341
]
4442

45-
{ #category : 'tests' }
43+
{ #category : #tests }
4644
DataFrameHeadTailTest >> testDataFrameHeadN [
4745

4846
| actual expected |
@@ -59,7 +57,7 @@ DataFrameHeadTailTest >> testDataFrameHeadN [
5957
self assert: actual equals: expected
6058
]
6159

62-
{ #category : 'tests' }
60+
{ #category : #tests }
6361
DataFrameHeadTailTest >> testDataFrameTail [
6462

6563
| actual expected rows |
@@ -81,7 +79,7 @@ DataFrameHeadTailTest >> testDataFrameTail [
8179
self assert: actual equals: expected
8280
]
8381

84-
{ #category : 'tests' }
82+
{ #category : #tests }
8583
DataFrameHeadTailTest >> testDataFrameTailN [
8684

8785
| actual expected rows |
@@ -101,7 +99,7 @@ DataFrameHeadTailTest >> testDataFrameTailN [
10199
self assert: actual equals: expected
102100
]
103101

104-
{ #category : 'tests' }
102+
{ #category : #tests }
105103
DataFrameHeadTailTest >> testDefaultHeadTailSize [
106104

107105
self assert: df defaultHeadTailSize equals: 5

0 commit comments

Comments
 (0)