forked from pharo-project/pharo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the way to declare a metaclass class and fix some bugs in the …
…metaclass class selected
- Loading branch information
Showing
5 changed files
with
48 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Class { | ||
#name : 'ShTraitBuilderTest', | ||
#superclass : 'ShiftClassBuilderTest', | ||
#category : 'Traits-Tests-ShiftClassInstaller', | ||
#package : 'Traits-Tests', | ||
#tag : 'ShiftClassInstaller' | ||
} | ||
|
||
{ #category : 'tests' } | ||
ShTraitBuilderTest >> testRemovingTraitCompositionOfAClassShouldUpdateItsMetaclass [ | ||
|
||
| t1 newClass | | ||
t1 := (Trait << #TShCITestClass package: self packageNameForTest) install. | ||
|
||
newClass := ((Object << #ShCITestClass) | ||
traits: t1; | ||
package: self packageNameForTest) install. | ||
|
||
self assert: newClass class class equals: TraitedMetaclass. | ||
|
||
newClass := (Object << #ShCITestClass package: self packageNameForTest) install. | ||
|
||
self assert: newClass class class equals: Metaclass | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters