Levente Uzonyi uploaded a new version of CollectionsTests to project The Trunk:
http://source.squeak.org/trunk/CollectionsTests-ul.133.mcz==================== Summary ====================
Name: CollectionsTests-ul.133
Author: ul
Time: 29 January 2010, 2:13:08.142 am
UUID: 09bc2c7a-ddb8-a449-99e0-e70462cb30ec
Ancestors: CollectionsTests-nice.132
- a test for #utf8ToSqueak and Byte order mark
=============== Diff against CollectionsTests-nice.132 ===============
Item was added:
+ ----- Method: StringTest>>testUtf8ToSqueakByteOrderMark (in category 'tests - converting') -----
+ testUtf8ToSqueakByteOrderMark
+ "Ensure that utf8ToSqueak ignores Byte order mark (BOM) just like UTF8TextConverter does"
+
+ {
+ #('' '').
+ #('abc' 'abc').
+ "Make sure that we remove inner BOMs for maximal compatibility with UTF8TextConverter"
+ #('abc' 'abc').
+ { 'abcÓ'. 'abc', (Unicode value: 1234) asString }
+ } do: [ :each |
+ self assert: each first utf8ToSqueak = each second ]!