Skip to content

Commit

Permalink
move testCommentsParent to RBMethodNodeTest (as it tests the AST level)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusDenker committed Jun 10, 2020
1 parent c3598fe commit d6a7138
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
8 changes: 8 additions & 0 deletions src/AST-Core-Tests/RBMethodNodeTest.class.st
Expand Up @@ -56,6 +56,14 @@ RBMethodNodeTest >> testCommentedMethodHasComments [

]

{ #category : #'testing-comments' }
RBMethodNodeTest >> testCommentsParent [
"Test if comment has a parent"
self
assert: (CompiledMethodTest >> #testCommentsParent) ast comments first parent selector
equals: #testCommentsParent.
]

{ #category : #'tests - primitives' }
RBMethodNodeTest >> testIsPrimitive [
"see other testPrimitive... tests"
Expand Down
9 changes: 0 additions & 9 deletions src/Kernel-Tests-Extended/CompiledMethodTest.class.st
Expand Up @@ -312,15 +312,6 @@ CompiledMethodTest >> testComments [
self assert: (CompiledMethod >> #compiledMethod) comments isEmpty
]

{ #category : #'tests - accessing' }
CompiledMethodTest >> testCommentsParent [
"Test if comment has a parent"
self
assert: (CompiledMethodTest >> #testCommentsParent) ast comments first parent selector
equals: #testCommentsParent.

]

{ #category : #'tests - accessing' }
CompiledMethodTest >> testComparison [
| method1 method2 |
Expand Down

0 comments on commit d6a7138

Please sign in to comment.