[squeak-dev] The Trunk: CollectionsTests-ul.133.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Jan 29 01:17:27 UTC 2010


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 ]!




More information about the Squeak-dev mailing list