Skip to content

Commit

Permalink
Changed test class generation to fluid syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bajger committed Feb 16, 2024
1 parent bea29cb commit 8e8318b
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions dev/src/ExercismDev/ExercismExerciseGenerator.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -212,16 +212,12 @@ ExercismExerciseGenerator >> generateSetupFor: testClass [
{ #category : #generation }
ExercismExerciseGenerator >> generateTestClass [

^ ExercismTest classInstaller make: [ :builder |
builder
superclass: ExercismTest;
name: self testClassName asSymbol;
slots: self testVariableName asSlotCollection;
sharedVariablesFromString: '';
sharedPools: '';
tag: self testNameCamelCased;
package: 'ExercismWIP';
environment: ExercismTest environment ]
^ ExercismTest << self testClassName asSymbol
slots: {self testVariableName asSymbol};
sharedVariables: {};
tag: self testNameCamelCased;
package: 'ExercismWIP';
install
]

{ #category : #generation }
Expand Down

0 comments on commit 8e8318b

Please sign in to comment.