Nicolas Cellier uploaded a new version of MultilingualTests to project The Trunk:
http://source.squeak.org/trunk/MultilingualTests-nice.5.mcz==================== Summary ====================
Name: MultilingualTests-nice.5
Author: nice
Time: 27 December 2009, 4:22:30 am
UUID: 1fb7c1af-52c7-4ee0-8c2d-7efc25bd9d87
Ancestors: MultilingualTests-nice.4
Cosmetic: move or remove a few temps inside closures
=============== Diff against MultilingualTests-nice.4 ===============
Item was changed:
----- Method: MultiByteFileStreamTest>>testMultiByteTextConverter (in category 'testing') -----
testMultiByteTextConverter
| strings converterClasses |
strings := {
String newFrom: ((0 to: 255) collect: [:e | Unicode value: e]).
String newFrom: ((0 to: 1023) collect: [:e | Unicode value: e]).
}.
converterClasses := {
UTF8TextConverter . UTF16TextConverter .
"CompoundTextConverter ."
"EUCJPTextConverter . CNGBTextConverter . ShiftJISTextConverter . EUCKRTextConverter"}.
+ converterClasses do: [:converterClass |
- converterClasses do: [:converterClass | | converter stream |
strings do: [:string |
+ | converter stream |
converter := converterClass new.
stream := String new writeStream.
converter nextPutAll: string toStream: stream.
stream := stream contents readStream.
string do: [:e | | decoded |
decoded := converter nextFromStream: stream.
self assert: e charCode = decoded charCode].
self assert: stream atEnd.
stream := String new writeStream.
string do: [:e | converter nextPut: e toStream: stream].
stream := stream contents readStream.
string do: [:e | | decoded |
decoded := converter nextFromStream: stream.
self assert: e charCode = decoded charCode].
self assert: stream atEnd]]!