A new version of Tests was added to project The Inbox:
http://source.squeak.org/inbox/Tests-dtl.431.mcz ==================== Summary ==================== Name: Tests-dtl.431 Author: dtl Time: 13 April 2020, 4:00:53.831835 pm UUID: 425d64a9-e840-4c8f-ae0e-db0c4b811ef4 Ancestors: Tests-dtl.430 Test coverage for MCConfiguration>>copyForEdit =============== Diff against Tests-dtl.430 =============== Item was changed: SystemOrganization addCategory: #'Tests-Bugs'! SystemOrganization addCategory: #'Tests-Compiler'! SystemOrganization addCategory: #'Tests-Dependencies'! SystemOrganization addCategory: #'Tests-Digital Signatures'! SystemOrganization addCategory: #'Tests-Environments'! SystemOrganization addCategory: #'Tests-Exceptions'! SystemOrganization addCategory: #'Tests-FilePackage'! SystemOrganization addCategory: #'Tests-Files'! SystemOrganization addCategory: #'Tests-Finalization'! SystemOrganization addCategory: #'Tests-Hex'! SystemOrganization addCategory: #'Tests-Installer-Core'! SystemOrganization addCategory: #'Tests-Localization'! SystemOrganization addCategory: #'Tests-Monticello'! SystemOrganization addCategory: #'Tests-Monticello-Mocks'! SystemOrganization addCategory: #'Tests-Monticello-Utils'! SystemOrganization addCategory: #'Tests-Object Events'! SystemOrganization addCategory: #'Tests-ObjectsAsMethods'! SystemOrganization addCategory: #'Tests-PrimCallController'! SystemOrganization addCategory: #'Tests-Release'! SystemOrganization addCategory: #'Tests-System-Applications'! SystemOrganization addCategory: #'Tests-System-Digital Signatures'! SystemOrganization addCategory: #'Tests-System-Object Storage'! SystemOrganization addCategory: #'Tests-System-Preferences'! SystemOrganization addCategory: #'Tests-System-Support'! SystemOrganization addCategory: #'Tests-Utilities'! SystemOrganization addCategory: #'Tests-VM'! - SystemOrganization addCategory: #'Tests-MonticelloConfigurations'! Item was changed: ----- Method: MCConfigurationTest>>sampleMcmFileContentsWithHistory (in category 'running') ----- sampleMcmFileContentsWithHistory "Contents of an MCM file with multiple repositories and dependencies and two prior versions in its history." "MCConfigurationTest new sampleMcmFileContentsWithHistory" ^ '( name ''update.V3-dtl.464'' repository (''http://source.squeak.org/trunk'') repository (''http://www.squeaksource.com/TrunkUpdateStreamV3'') dependency (''Kernel'' ''Kernel.V3-dtl.1319'' ''18bad077-f877-4b68-bcfd-04716bdd807d'') dependency (''Compiler'' ''Compiler.V3-dtl.419'' ''353d296d-24a6-49f2-9b44-e8f8e216ec35'') dependency (''Collections'' ''Collections.V3-dtl.882'' ''9c3d454c-d010-49b7-b52d-c82a89ad9c71'') dependency (''Monticello'' ''Monticello-nice.716'' ''a1f8545a-b4f8-4bae-b349-e8bbba23816e'') dependency (''Files'' ''Files-pre.183'' ''c7d0c859-2531-464e-87d8-3b580249731b'') dependency (''Sound'' ''Sound-dtl.68'' ''c7b5a141-2b1b-4d24-ab88-0a96dd78600b'') mcmVersion ''2'' authorInitials ''dtl'' + timeStamp ''2020-04-10T15:00:06-04:00'' - timeStamp ''2020-04-10T15:00:06.887746-04:00'' comment ''A comment describing this version of the configuration map'' Xname ''update.V3-dtl.464'' Xrepository (''http://source.squeak.org/trunk'') Xrepository (''http://www.squeaksource.com/TrunkUpdateStreamV3'') Xdependency (''Kernel'' ''Kernel.V3-dtl.1319'' ''18bad077-f877-4b68-bcfd-04716bdd807d'') Xdependency (''Compiler'' ''Compiler.V3-dtl.419'' ''353d296d-24a6-49f2-9b44-e8f8e216ec35'') Xdependency (''Collections'' ''Collections.V3-dtl.882'' ''9c3d454c-d010-49b7-b52d-c82a89ad9c71'') Xdependency (''Monticello'' ''Monticello-nice.716'' ''a1f8545a-b4f8-4bae-b349-e8bbba23816e'') Xdependency (''Files'' ''Files-pre.183'' ''c7d0c859-2531-464e-87d8-3b580249731b'') + Xdependency (''Sound'' ''Sound-dtl.68'' ''9c3d454c-d010-49b7-b52d-c82a89ad9c71'') - Xdependency (''Sound'' ''Sound-dtl.68'' ''c7b5a141-2b1b-4d24-ab88-0a96dd78600b'') XmcmVersion ''2'' XauthorInitials ''dtl'' + XtimeStamp ''2020-04-10T15:00:08.887746-04:00'' + Xcomment ''A comment describing the prior version of the configuration map'' - XtimeStamp ''2020-04-10T15:00:06.887746-04:00'' - Xcomment ''A comment describing this version of the configuration map'' Xname ''update.V3-dtl.464'' Xrepository (''http://source.squeak.org/trunk'') Xrepository (''http://www.squeaksource.com/TrunkUpdateStreamV3'') Xdependency (''Kernel'' ''Kernel.V3-dtl.1319'' ''18bad077-f877-4b68-bcfd-04716bdd807d'') Xdependency (''Compiler'' ''Compiler.V3-dtl.419'' ''353d296d-24a6-49f2-9b44-e8f8e216ec35'') Xdependency (''Collections'' ''Collections.V3-dtl.882'' ''9c3d454c-d010-49b7-b52d-c82a89ad9c71'') Xdependency (''Monticello'' ''Monticello-nice.716'' ''a1f8545a-b4f8-4bae-b349-e8bbba23816e'') Xdependency (''Files'' ''Files-pre.183'' ''c7d0c859-2531-464e-87d8-3b580249731b'') Xdependency (''Sound'' ''Sound-dtl.68'' ''c7b5a141-2b1b-4d24-ab88-0a96dd78600b'') ) '! Item was added: + ----- Method: MCConfigurationTest>>testCopyForEditForBasic (in category 'tests - basic format') ----- + testCopyForEditForBasic + + | array mcm forEdit | + array := MCScanner scan: sampleMcmFileContents readStream. + mcm := MCConfiguration fromArray: array. + self assert: MCConfiguration equals: mcm class. + forEdit := mcm copyForEdit. + self assert: MCConfigurationExtended equals: forEdit class. + self assert: 'update.V3-dtl.464' equals: forEdit name. + self assert: 2 equals: forEdit repositories size. + self assert: 6 equals: forEdit dependencies size. + self assert: (forEdit instVarNamed: #log) isNil. + self assert: '2' equals: forEdit mcmVersion. + self assert: forEdit authorInitials isNil. + self assert: forEdit timeStamp isNil. + self assert: forEdit comment isNil. + self assert: 1 equals: forEdit priorVersions size. + self assert: forEdit priorVersions first == mcm. + ! Item was added: + ----- Method: MCConfigurationTest>>testCopyForEditForExtended (in category 'tests - extended format') ----- + testCopyForEditForExtended + + | input array mcm forEdit | + input := sampleMcmFileContentsWithHistory. + array := MCScanner scan: input readStream. + mcm := MCConfiguration fromArray: array. + self assert: MCConfigurationExtended equals: mcm class. + forEdit := mcm copyForEdit. + self assert: MCConfigurationExtended equals: forEdit class. + self assert: 'update.V3-dtl.464' equals: forEdit name. + self assert: 2 equals: forEdit repositories size. + self assert: 6 equals: forEdit dependencies size. + self assert: (forEdit instVarNamed: #log) isNil. + self assert: '2' equals: forEdit mcmVersion. + self assert: forEdit authorInitials isNil. "to be set when saved" + self assert: forEdit timeStamp isNil. "to be set when saved" + self assert: mcm comment equals: forEdit comment. "assume user may want to edit existing comment" + self assert: 3 equals: forEdit priorVersions size. + self assert: forEdit priorVersions first == mcm. + ! |
Free forum by Nabble | Edit this page |