RegressionTests__EnumerationTests.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Wed, 14 Aug 2013 19:14:07 +0200
branchinitialV
changeset 1444 98c8cfdb1fda
parent 95 362e58ff28ba
child 181 a56517005229
permissions -rw-r--r--
checkin from stx browser

"{ Package: 'exept:regression' }"

"{ NameSpace: RegressionTests }"

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$'
! !