Skip to content

Commit e913aca

Browse files
authored
Merge pull request #359 from macta/exercise-categorisations
Small changes to update the categories of some earlier tests
2 parents 7e82010 + 65c32b6 commit e913aca

File tree

16 files changed

+32
-15
lines changed

16 files changed

+32
-15
lines changed

dev/src/Exercise@Anagram/AnagramTest.class.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Class {
2121
#category : #'Exercise@Anagram'
2222
}
2323

24-
{ #category : #helper }
24+
{ #category : #config }
2525
AnagramTest class >> exercise [
2626
"Answer the configured exercise meta data for this exercise, an ExercismExercise"
2727

dev/src/Exercise@Binary/BinaryTest.class.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Class {
4545
#category : #'Exercise@Binary'
4646
}
4747

48-
{ #category : #helper }
48+
{ #category : #config }
4949
BinaryTest class >> exercise [
5050
"Answer the configured exercise meta data for this exercise, an ExercismExercise"
5151

dev/src/Exercise@Grains/GrainsTest.class.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Class {
4343
#category : #'Exercise@Grains'
4444
}
4545

46-
{ #category : #helper }
46+
{ #category : #config }
4747
GrainsTest class >> exercise [
4848
"Answer the configured exercise meta data for this exercise, an ExercismExercise"
4949

dev/src/Exercise@Isogram/IsogramTest.class.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Class {
2828
#category : #'Exercise@Isogram'
2929
}
3030

31-
{ #category : #helper }
31+
{ #category : #config }
3232
IsogramTest class >> exercise [
3333
"Answer the configured exercise meta data for this exercise, an ExercismExercise"
3434

dev/src/Exercise@Pangram/PangramTest.class.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Class {
2323
#category : #'Exercise@Pangram'
2424
}
2525

26-
{ #category : #helper }
26+
{ #category : #config }
2727
PangramTest class >> exercise [
2828
"Answer the configured exercise meta data for this exercise, an ExercismExercise"
2929

dev/src/Exercise@RomanNumerals/RomanNumeralsTest.class.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Class {
5757
#category : #'Exercise@RomanNumerals'
5858
}
5959

60-
{ #category : #helper }
60+
{ #category : #config }
6161
RomanNumeralsTest class >> exercise [
6262
"Answer the configured exercise meta data for this exercise, an ExercismExercise"
6363

dev/src/Exercise@Sieve/SieveTest.class.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Class {
4444
#category : #'Exercise@Sieve'
4545
}
4646

47-
{ #category : #helper }
47+
{ #category : #config }
4848
SieveTest class >> exercise [
4949
"Answer the configured exercise meta data for this exercise, an ExercismExercise"
5050

dev/src/ExercismDev/ExercismExerciseGenerator.class.st

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,8 +410,20 @@ ExercismExerciseGenerator >> resetTestCounter [
410410
testCounter := 0
411411
]
412412

413+
{ #category : #internal }
414+
ExercismExerciseGenerator >> updateCategorisation [
415+
"utility script to fix categorisations"
416+
| cm |
417+
ExercismTest
418+
allSubclassesDo: [ :c |
419+
cm := c class localMethodNamed: #exercise ifAbsent: [ nil ].
420+
cm ifNotNil: [ cm protocol: 'config']]
421+
]
422+
413423
{ #category : #internal }
414424
ExercismExerciseGenerator >> updateTests [
425+
"utility script to fix previously generated test methods"
426+
415427
| cm src newSrc |
416428
ExercismTest
417429
allSubclassesDo: [ :c |

exercises/anagram/AnagramTest.class.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Class {
2121
#category : #'Exercise@Anagram'
2222
}
2323

24-
{ #category : #helper }
24+
{ #category : #config }
2525
AnagramTest class >> exercise [
2626
"Answer the configured exercise meta data for this exercise, an ExercismExercise"
2727

exercises/binary/BinaryTest.class.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Class {
4545
#category : #'Exercise@Binary'
4646
}
4747

48-
{ #category : #helper }
48+
{ #category : #config }
4949
BinaryTest class >> exercise [
5050
"Answer the configured exercise meta data for this exercise, an ExercismExercise"
5151

0 commit comments

Comments
 (0)