RegressionTests__EnumerationTests.st
author Claus Gittinger <cg@exept.de>
Mon, 04 Sep 2000 11:41:04 +0200
changeset 72 2374180bfa0d
child 95 362e58ff28ba
permissions -rw-r--r--
initial checkin

"{ Package: 'exept:regression' }"

Object subclass:#EnumerationTests
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'Tests-Regression'
!


!EnumerationTests class methodsFor:'tests'!

testArrayKeysAndValuesDo
    "test GC while enumerating an array"

    |a|

    a := (1 to:100) asArray.

    10 timesRepeat:[
        a keysAndValuesDo:[:index :val |
            ObjectMemory scavenge.
            index printString.
            ObjectMemory scavenge.
            val printString.
        ]
    ]

    "
     self testArrayKeysAndValuesDo
    "
! !

!EnumerationTests class methodsFor:'documentation'!

version
    ^ '$Header$'
! !