72
|
1 |
"{ Package: 'exept:regression' }"
|
|
2 |
|
95
|
3 |
"{ NameSpace: RegressionTests }"
|
|
4 |
|
72
|
5 |
Object subclass:#EnumerationTests
|
|
6 |
instanceVariableNames:''
|
|
7 |
classVariableNames:''
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'Tests-Regression'
|
|
10 |
!
|
|
11 |
|
|
12 |
|
|
13 |
!EnumerationTests class methodsFor:'tests'!
|
|
14 |
|
|
15 |
testArrayKeysAndValuesDo
|
|
16 |
"test GC while enumerating an array"
|
|
17 |
|
|
18 |
|a|
|
|
19 |
|
|
20 |
a := (1 to:100) asArray.
|
|
21 |
|
|
22 |
10 timesRepeat:[
|
95
|
23 |
a keysAndValuesDo:[:index :val |
|
|
24 |
ObjectMemory scavenge.
|
|
25 |
index printString.
|
|
26 |
ObjectMemory scavenge.
|
|
27 |
val printString.
|
|
28 |
]
|
72
|
29 |
]
|
|
30 |
|
|
31 |
"
|
|
32 |
self testArrayKeysAndValuesDo
|
|
33 |
"
|
|
34 |
! !
|
|
35 |
|
|
36 |
!EnumerationTests class methodsFor:'documentation'!
|
|
37 |
|
|
38 |
version
|
|
39 |
^ '$Header$'
|
|
40 |
! !
|