File tree 3 files changed +10
-6
lines changed
3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -75,17 +75,17 @@ TwoFerTest >> setUp [
75
75
]
76
76
77
77
{ #category : #tests }
78
- TwoFerTest >> testANameGiven [
78
+ TwoFerTest >> test01_ANameGiven [
79
79
self assert: (twoFer who: ' Alice' ) equals: ' One for Alice, one for me.'
80
80
]
81
81
82
82
{ #category : #tests }
83
- TwoFerTest >> testAnotherNameGiven [
83
+ TwoFerTest >> test02_AnotherNameGiven [
84
84
self assert: (twoFer who: ' Bob' ) equals: ' One for Bob, one for me.'
85
85
]
86
86
87
87
{ #category : #tests }
88
- TwoFerTest >> testNoNameGiven [
88
+ TwoFerTest >> test03_NoNameGiven [
89
89
self assert: twoFer who equals: ' One for you, one for me.'
90
90
91
91
]
Original file line number Diff line number Diff line change @@ -28,6 +28,11 @@ ExercismLabeledTest >> description: aString [
28
28
description := aString
29
29
]
30
30
31
+ { #category : #' as yet unclassified' }
32
+ ExercismLabeledTest >> exercise [
33
+ ^ exercise
34
+ ]
35
+
31
36
{ #category : #' as yet unclassified' }
32
37
ExercismLabeledTest >> exercise: aString [
33
38
exercise := aString
@@ -79,8 +84,7 @@ ExercismLabeledTest >> methodNameSegment [
79
84
methodNameSegment := groupPath isEmpty
80
85
ifFalse: [ groupPath last key asCamelCase asValidKeyword ]
81
86
ifTrue: [ ' ' ].
82
-
83
- ^ methodNameSegment , description asCamelCase asValidKeyword
87
+ ^ (methodNameSegment , description asCamelCase asValidKeyword) withoutPrefix: ' and'
84
88
]
85
89
86
90
{ #category : #' as yet unclassified' }
Original file line number Diff line number Diff line change @@ -20,6 +20,6 @@ String >> asValidKeyword [
20
20
validName := validName select: [ :c | c isAlphaNumeric or : [ c == $_ ] ].
21
21
22
22
^ (validName first isDigit
23
- ifTrue: [ (self isAllDigits ifTrue: [' at ' ] ifFalse: [' and' ]) , validName ]
23
+ ifTrue: [ (self isAllDigits ifTrue: [' At ' ] ifFalse: [' and' ]) , validName ]
24
24
ifFalse: [ validName ]) asSymbol
25
25
]
You can’t perform that action at this time.
0 commit comments