The Trunk: Tests-fbs.181.mcz

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

The Trunk: Tests-fbs.181.mcz

commits-2
Frank Shearar uploaded a new version of Tests to project The Trunk:
http://source.squeak.org/trunk/Tests-fbs.181.mcz

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

Name: Tests-fbs.181
Author: fbs
Time: 2 January 2013, 5:49:39.088 pm
UUID: b5dd3338-a1c8-42ec-af58-ee34587f5d9a
Ancestors: Tests-fbs.180

While valuable enough on its own, this test really aims to try nail down/understand the failure in testClassRemovalAndRecompilationWontCreateDuplicateVariableBindings.

=============== Diff against Tests-fbs.180 ===============

Item was changed:
  ----- Method: ClassRemovalTest>>tearDown (in category 'running') -----
  tearDown
 
  isClean ifTrue: [
+ Smalltalk removeClassNamed: self className1.
+ Smalltalk removeClassNamed: self className2.
- (Smalltalk at: self className1) removeFromSystem.
- (Smalltalk at: self className2) removeFromSystem.
  SystemOrganizer default removeCategory: self systemCategoryName ]!

Item was added:
+ ----- Method: ClassRemovalTest>>testClassCanBeRemoved (in category 'tests') -----
+ testClassCanBeRemoved
+ self
+ assert: isClean
+ description: 'The system category or the classes about to be created already exist.'.
+ "Create a class"
+ Object subclass: self className1
+ instanceVariableNames: ''
+ classVariableNames: ''
+ poolDictionaries: ''
+ category: self systemCategoryName.
+ self assert: (Smalltalk hasClassNamed: self className1) description: self className1, ' not created'.
+ "Remove the class"
+ (Smalltalk at: self className1) removeFromSystem.
+ self deny: (Smalltalk hasClassNamed: self className1) description: self className1, ' not removed'.!