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

commits at source.squeak.org commits at source.squeak.org
Mon Jan 18 14:32:38 UTC 2010


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

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

Name: CollectionsTests-nice.130
Author: nice
Time: 18 January 2010, 3:32:30.666 pm
UUID: b09c67c4-6c2f-304d-880a-6f4a47c36922
Ancestors: CollectionsTests-ar.129

Use literal ByteArray

=============== Diff against CollectionsTests-ar.129 ===============

Item was changed:
  ----- Method: StringTest>>testEquality (in category 'as yet unclassified') -----
  testEquality
  
  	self assert: 'abc' = 'abc' asWideString.
  	self assert: 'abc' asWideString = 'abc'.
+ 	self assert: (#[ 97 0 0 0 ] asString ~= 'a000' asWideString).
+ 	self assert: ('a000' asWideString ~= #[ 97 0 0 0 ] asString).
- 	self assert: ((ByteArray with: 97 with: 0 with: 0 with: 0) asString ~= 'a000' asWideString).
- 	self assert: ('a000' asWideString ~= (ByteArray with: 97 with: 0 with: 0 with: 0) asString).
  
  	self assert: ('abc' sameAs: 'aBc' asWideString).
  	self assert: ('aBc' asWideString sameAs: 'abc').
+ 	self assert: (#[ 97 0 0 0 ] asString 
- 	self assert: ((ByteArray with: 97 with: 0 with: 0 with: 0) asString 
  						sameAs: 'Abcd' asWideString) not.
  	self assert: ('a000' asWideString sameAs: 
+ 					#[ 97 0 0 0 ] asString) not.!
- 					(ByteArray with: 97 with: 0 with: 0 with: 0) asString) not.!

Item was changed:
  ----- Method: WideStringTest>>testEqual (in category 'tests - compare') -----
  testEqual
  	"from johnmci at http://bugs.squeak.org/view.php?id=5331"
  	
  	self assert: 'abc' = 'abc'.
  	self assert: 'abc' = 'abc' asWideString.
  	self assert: 'abc' asWideString = 'abc'.
  	self assert: 'abc' asWideString = 'abc' asWideString.
  	self assert: ('abc' = 'ABC') not.
  	self assert: ('abc' = 'ABC' asWideString) not.
  	self assert: ('abc' asWideString = 'ABC') not.
  	self assert: ('abc' asWideString = 'abc' asWideString).
+ 	self assert: (#[ 97 0 0 0 ] asString ~= 'a000' asWideString).
+ 	self assert: ('a000' asWideString ~= #[ 97 0 0 0 ] asString).!
- 	self assert: ((ByteArray with: 97 with: 0 with: 0 with: 0) asString ~= 'a000' asWideString).
- 	self assert: ('a000' asWideString ~= (ByteArray with: 97 with: 0 with: 0 with: 0) asString).!

Item was changed:
  ----- Method: WideStringTest>>testSameAs (in category 'tests - compare') -----
  testSameAs
  	"from johnmci at http://bugs.squeak.org/view.php?id=5331"
  
  	self assert: ('abc' sameAs: 'aBc' asWideString).
  	self assert: ('aBc' asWideString sameAs: 'abc').
+ 	self assert: (#[ 97 0 0 0 ] asString sameAs: 'Abcd' asWideString) not.
+ 	self assert: ('a000' asWideString sameAs: #[ 97 0 0 0 ] asString) not.
- 	self assert: ((ByteArray with: 97 with: 0 with: 0 with: 0) asString sameAs: 'Abcd' asWideString) not.
- 	self assert: ('a000' asWideString sameAs: (ByteArray with: 97 with: 0 with: 0 with: 0) asString) not.
  	!




More information about the Squeak-dev mailing list