[squeak-dev] The Trunk: CollectionsTests-nice.131.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Jan 18 17:12:59 UTC 2010


Nicolas Cellier uploaded a new version of CollectionsTests to project The Trunk:
http://source.squeak.org/trunk/CollectionsTests-nice.131.mcz

==================== Summary ====================

Name: CollectionsTests-nice.131
Author: nice
Time: 18 January 2010, 6:12:52.947 pm
UUID: f2af7e34-1112-ed44-8247-e932546dddc1
Ancestors: CollectionsTests-nice.130

use ByteArray literals

=============== Diff against CollectionsTests-nice.130 ===============

Item was changed:
  ----- Method: IntervalTest>>testAsInterval (in category 'tests') -----
  testAsInterval
  	"This is the same as newFrom:"
  
  	self shouldnt: [
  		self assert: (#(1 2 3) as: Interval) = (1 to: 3).
  		self assert: (#(33 5 -23) as: Interval) = (33 to: -23 by: -28).
+ 		self assert: (#[2 4 6] as: Interval) = (2 to: 6 by: 2).
- 		self assert: (#(2 4 6) asByteArray as: Interval) = (2 to: 6 by: 2).
  	] raise: Error.
  
  	self should: [#(33 5 -22) as: Interval]
  		raise: Error
  		description: 'This is not an arithmetic progression'
  !

Item was changed:
  ----- Method: StringTest>>testUtf8ToSqueakLeadingChar (in category 'tests - converting') -----
  testUtf8ToSqueakLeadingChar
  	"Ensure utf8ToSqueak inserts the leading char just like UTF8TextConverter does"
  	| data |
+ 	data := #[ 227 129 130 227 129 132 227 129 134 227 129 136 227 129 138 ] asString "aiueo in Japanese".
+ 	self assert: data utf8ToSqueak = (data convertFromEncoding: #utf8)
- 	data := #(227 129 130 227 129 132 227 129 134 227 129 136 227 129 138) asByteArray "aiueo in Japanese".
- 	self assert: data asString utf8ToSqueak = (data asString convertFromEncoding:
- #utf8)
  
  !




More information about the Squeak-dev mailing list