Skip to content

Commit

Permalink
New test and raising error in differentialValidator
Browse files Browse the repository at this point in the history
  • Loading branch information
anquetil committed Nov 17, 2023
1 parent 70b2e1a commit 35edede
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/FAST-Core-Tools/FASTDifferentialValidator.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ FASTDifferentialValidator >> compare: ast1 to: ast2 [
(ast1 class = ast2 class)
ifFalse: [ self ast: ast1 differ: ast2 ].

((self childrenNodes: ast1) size = (self childrenNodes: ast2) size)
ifFalse: [ self ast: ast1 differ: ast2 ].

(self childrenNodes: ast1)
with: (self childrenNodes: ast2)
do: [ :a :b | self compare: a to: b ]
Expand Down

0 comments on commit 35edede

Please sign in to comment.