The Trunk: Kernel-ul.711.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Kernel-ul.711.mcz

commits-2
Levente Uzonyi uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-ul.711.mcz

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

Name: Kernel-ul.711
Author: ul
Time: 21 September 2012, 3:52:01.69 am
UUID: 34bbbd59-62f6-8a4c-98a1-4277ce568856
Ancestors: Kernel-bf.710

Accept a block as description (besides a string) in Object>>assert:description:. This ensures that the method's behavior is the same as TestCase>>assert:description:'s.

=============== Diff against Kernel-bf.710 ===============

Item was changed:
  ----- Method: Object>>assert:description: (in category 'error handling') -----
+ assert: aBlock description: aStringOrBlock
- assert: aBlock description: aString
  "Throw an assertion error if aBlock does not evaluates to true."
 
+ aBlock value ifFalse: [ AssertionFailure signal: aStringOrBlock value ]!
- aBlock value ifFalse: [AssertionFailure signal: aString ]!