Broken(?) Array2D behavior
Marcus Denker
marcus at ira.uka.de
Mon Mar 17 13:56:33 UTC 2003
On Sun, Mar 16, 2003 at 09:02:19AM +0100, Stephane Ducasse wrote:
> hi marc
>
> Why don't you submit a Unit Test for the bug identification?
>
Yes, please!
Maybe it's not yet really clear how to tests. It's really simple:
1. add a class
TestCase subclass: #Array2DTest
instanceVariableNames: ''
classVariableNames: ''
poolDictionaries: ''
category: 'Tests-Collections-Arrayed'
2. add a method to that class:
testRowAndColumnValuesDo
| foo |
foo _ Array2D width: 5 height: 20.
self shouldnt: [foo rowAndColumnValuesDo: [ :row :col :val ]] raise: Error.
3. file out, post to the List with the [Test] Tag. Then this will be
added to the SqueakMap Package "BaseImage Tests".
4. that's it.
--
Marcus Denker marcus at ira.uka.de -- Squeak! http://squeak.de
More information about the Squeak-dev
mailing list
|