Skip to content

Commit e2b303f

Browse files
committed
GtEpiceaEventFactoryExamples update expected number of entries for Pharo 13 and expand assertion failure messages
1 parent c21a232 commit e2b303f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎src/GToolkit4Epicea/GtEpiceaEventFactoryExamples.class.st‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ GtEpiceaEventFactoryExamples >> classAddModifyRenameCategoryRemove [
128128
"Depending on the order, the package name may have been cached"
129129
"sourceEpEntries would normally not contain more than 12 entries, but
130130
due to https://github.com/feenkcom/gtoolkit/issues/4734 it currently contains additional EpClassAddition events as well."
131-
self assert: (sourceEpEntries size between: 8 and: 16).
131+
self assert: (sourceEpEntries size between: 8 and: 17)
132+
description: [ 'Expected sourceEpEntries size between 8 and 17, got: ', sourceEpEntries size asString ].
132133
"Because the generated events involve a class actually being removed, the class ends up being obsolete.
133134
Patch the remove event to use the same class as the add event."
134135
classRemovedEntries := sourceEpEntries select: [ :entry | entry content isEpClassRemoval ].
@@ -257,7 +258,8 @@ GtEpiceaEventFactoryExamples >> traitAddModifyRenameRemove [
257258
"Allow for differences in events between Pharo11 and Pharo12"
258259
"sourceEpEntries would normally not contain more than 8 entries, but
259260
due to https://github.com/feenkcom/gtoolkit/issues/4734 it currently contains additional EpTraitAddition events as well."
260-
self assert: (sourceEpEntries size between: 6 and: 11).
261+
self assert: (sourceEpEntries size between: 6 and: 12)
262+
description: [ 'Expected sourceEpEntries size between 6 and 12, got: ', sourceEpEntries size asString ].
261263
"Because the generated events involve a trait actually being removed, the class ends up being obsolete.
262264
Patch the remove event to use the same class as the add event."
263265
traitAddedEvent := sourceEpEntries detect: [ :each |

0 commit comments

Comments
 (0)