sl4m/gnu_smalltalk_koans — pull request #5 by german (2012-04-03 09:58:27+00:00)
Title: Proposal to add #toEqualAsArrays method in Koan.st to properly test arrays against OrderedCollection and SortedCollection

Hello, skim.

I saw you last commit yesterday. It really helped me but there are other koans with this kind of bug so I thought it would be great to fix them all at once.

So I added #toEqualAsArrays method in Koan.st and changed src/koans/TestOrderedCollection.st and src/koans/TestOrderedCollection.st respectively:

```smalltalk
expect: expectedValue toEqualAsArrays: actualValue [
tracker status ifFalse: [^nil].
(expectedValue asArray = actualValue asArray)
ifFalse: [ self setTrackerToFalse: 'Expected array/collection SHOULD equal actual array/collection.' expected: expectedValue actual: actualValue ].
]
```

What do think of it?

Thanks.