Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jecisc committed May 7, 2024
1 parent 4d6e17c commit c16ef50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Kernel-ExtraUtils/ClassHierarchyPrinter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ClassHierarchyPrinter new
doNotShowState;
doNotShowSuperclasses;
excludedClasses: (ASTNode withAllSubclasses select: [ :each | each name beginsWith: 'RBPattern' ]);
limitedToClasses: (ASTNode withAllSubclasses select: [:each | each name beginsWith: 'AST' or: [ each name beginsWith: 'RB' ]]]).
limitedToClasses: (ASTNode withAllSubclasses select: [:each | (each name beginsWith: 'AST') or: [ each name beginsWith: 'RB' ]]]).
```
produces
Expand Down
4 changes: 2 additions & 2 deletions src/Kernel-ExtraUtils/ClassHierarchyPrinterTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ End'
]

{ #category : 'tests' }
ClassHierarchyPrinterTest >> testOnlyRBASTNodes [
ClassHierarchyPrinterTest >> testOnlyASTNodes [

printer
forClass: ASTNode;
doNotShowState;
doNotShowSuperclasses;
excludedClasses: (ASTNode withAllSubclasses select: [ :each | each name beginsWith: 'RBPattern' ]);
limitedToClasses: (ASTNode withAllSubclasses select: [:each | each name beginsWith: 'RB' or: [ each name beginsWith: 'AST' ]]).
limitedToClasses: (ASTNode withAllSubclasses select: [:each | (each name beginsWith: 'RB') or: [ each name beginsWith: 'AST' ]]).
self assert: printer print equals:
'ASTNode
RBProgramNode
Expand Down

0 comments on commit c16ef50

Please sign in to comment.