The Trunk: KernelTests-nice.124.mcz

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

The Trunk: KernelTests-nice.124.mcz

commits-2
Nicolas Cellier uploaded a new version of KernelTests to project The Trunk:
http://source.squeak.org/trunk/KernelTests-nice.124.mcz

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

Name: KernelTests-nice.124
Author: nice
Time: 25 December 2009, 7:06:58 am
UUID: 352b514e-74fe-4fb6-8ac0-5e9498a894ee
Ancestors: KernelTests-ar.123

Add a test showing how #formalParametersAt: is broken

=============== Diff against KernelTests-ar.123 ===============

Item was added:
+ ----- Method: BehaviorTest>>testFormalParameterNames (in category 'tests') -----
+ testFormalParameterNames
+ | method |
+ method := #sampleMessageWithFirstArgument:andInterleavedCommentBeforeSecondArgument:.
+ self assert: (self class formalParametersAt: method) size = 2.
+ self assert: (self class formalParametersAt: method) = #('firstArgument' 'secondArgument').
+ Object selectorsDo: [:e |
+ self assert: (Object formalParametersAt: e) size = e numArgs].!

Item was added:
+ ----- Method: BehaviorTest>>sampleMessageWithFirstArgument:andInterleavedCommentBeforeSecondArgument: (in category 'tests') -----
+ sampleMessageWithFirstArgument: firstArgument "This is a comment intended to explain arg1"
+    andInterleavedCommentBeforeSecondArgument: secondArgument
+
+ "This method is here to test a few utilities like formalParametersAt:"
+
+ | thisIsAnUnusedTemp |
+ thisIsAnUnusedTemp := self.
+ ^thisIsAnUnusedTemp!