[squeak-dev] The Trunk: Tests-cmm.116.mcz
commits at source.squeak.org
commits at source.squeak.org
Wed Mar 16 19:06:58 UTC 2011
Chris Muller uploaded a new version of Tests to project The Trunk:
http://source.squeak.org/trunk/Tests-cmm.116.mcz
==================== Summary ====================
Name: Tests-cmm.116
Author: cmm
Time: 3 March 2011, 2:00:46.582 pm
UUID: 30fead18-4586-45a1-8544-51ce0d922cfb
Ancestors: Tests-nice.115
- Added test for MCFileName.
=============== Diff against Tests-nice.115 ===============
Item was added:
+ MCTestCase subclass: #MCFileNameTest
+ instanceVariableNames: ''
+ classVariableNames: ''
+ poolDictionaries: ''
+ category: 'Tests-Monticello'!
Item was added:
+ ----- Method: MCFileNameTest>>allFixtures (in category 'as yet unclassified') -----
+ allFixtures
+ ^ self standardFixtures , self diffyFixtures!
Item was added:
+ ----- Method: MCFileNameTest>>diffyFixtures (in category 'as yet unclassified') -----
+ diffyFixtures
+ ^ #('Package-author.123(origAuthor.122)' 'Package-author.123(origAuthor.122).mcd' ) collect:
+ [ : each | MCFileName on: each ]!
Item was added:
+ ----- Method: MCFileNameTest>>standardFixtures (in category 'as yet unclassified') -----
+ standardFixtures
+ ^ #('Package-author.123' 'Package-author.123.mcz' ) collect:
+ [ : each | MCFileName on: each ]!
Item was added:
+ ----- Method: MCFileNameTest>>testMCFileNames (in category 'as yet unclassified') -----
+ testMCFileNames
+ self allFixtures do: [ : each | self verifyPackageAuthorVersion: each ].
+ self diffyFixtures do: [ : each | self verifyAncestryAttributes: each ]!
Item was added:
+ ----- Method: MCFileNameTest>>verifyAncestryAttributes: (in category 'as yet unclassified') -----
+ verifyAncestryAttributes: aMCFileName
+ self
+ assert: aMCFileName ancestorVersionNumber = 122 ;
+ assert: aMCFileName ancestorAuthor = 'origAuthor'!
Item was added:
+ ----- Method: MCFileNameTest>>verifyPackageAuthorVersion: (in category 'as yet unclassified') -----
+ verifyPackageAuthorVersion: aMCFileName
+ self
+ assert: aMCFileName packageName = 'Package' ;
+ assert: aMCFileName versionNumber = 123 ;
+ assert: aMCFileName author = 'author' ;
+ assert: aMCFileName isValid!
More information about the Squeak-dev
mailing list
|