Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
akevalion committed Oct 10, 2023
1 parent dc6312d commit 6a82fd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Roassal-Layouts-Tests/RSClusteringLayoutTest.class.st
Expand Up @@ -24,7 +24,7 @@ RSClusteringLayoutTest >> testBasic [
ifNotConnectedThen: RSGridLayout new;
else: (RSClusteringLayout new
clustersLayout: RSFlowLayout new;
forEachLayout: RSTreeLayout new);
forEachLayout: (RSTreeLayout new childrenSortBlock: [:a :b| a model < b model]));
on: nodes.
self assertIntegerPosition: nodes equals: {
29 @ 5.
Expand Down
3 changes: 1 addition & 2 deletions src/Roassal-Layouts-Tests/RSLayoutTestCase.class.st
Expand Up @@ -8,6 +8,5 @@ Class {
RSLayoutTestCase >> assertIntegerPosition: aGroupOfShapes equals: anArray [
| col |
col := aGroupOfShapes collect: [ :each | each position asIntegerPoint ] as: Array.
self assert: col size equals: anArray size.
col do: [ :each | self assert: (anArray includes: each) ]
self assert: col equals: anArray.
]

0 comments on commit 6a82fd5

Please sign in to comment.