Skip to content

Commit

Permalink
test arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
ivojawer committed Aug 1, 2023
1 parent 5e5bb2d commit adc3855
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions smalltalksrc/VMMakerTests/VMLiterRulesTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,23 @@ VMLiterRulesTest >> testSlangRedundantTypeDeclaration [
self assert:
(ReSlangRedundantTypeDeclarationRule new basicCheck:
ast pragmas first).
]

{ #category : #tests }
VMLiterRulesTest >> testSlangTypeDeclarationForArgument [

| ast |
ast := self class compiler parse:
'testMethod: anArg <var:#anArg declareC: #aDeclaration>'.
self deny:
(ReSlangRedundantTypeDeclarationRule new basicCheck:
ast pragmas first)
]

{ #category : #tests }
VMLiterRulesTest >> testSlangTypeDeclarationForVariable [

| ast |
ast := self class compiler parse:
'testMethod <var:#aVar declareC: #aDeclaration> | aVar |'.
self deny:
Expand Down

0 comments on commit adc3855

Please sign in to comment.