Skip to content

Commit

Permalink
Fix more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jecisc committed Oct 28, 2024
1 parent 6925af5 commit 9ce9f6a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ FamixPythonImporterWithClassesTest >> testAttribute [

| class |
class := self classNamed: 'Player'.
self assert: class attributes size equals: 3.
class attributes do: [ :attributes | self assert: (#( width height my_joystick ) anySatisfy: [ :name | name = attributes name ]) ]
self assert: class attributes size equals: 5.
class attributes do: [ :attributes | self assert: (#( width height my_joystick image rect ) anySatisfy: [ :name | name = attributes name ]) ]
]

{ #category : 'tests' }
Expand All @@ -44,7 +44,7 @@ FamixPythonImporterWithClassesTest >> testClassKnowsItsMethods [
| cl |
cl := self classNamed: 'Player'.
self assert: cl methods first name equals: '__init__'.
self assert: cl methods first signature equals: 'self, x, y, joystick_no'
self assert: cl methods first signature equals: '__init__(self, x, y, joystick_no)'
]

{ #category : 'tests - classes' }
Expand Down Expand Up @@ -89,7 +89,7 @@ FamixPythonImporterWithClassesTest >> testMethod [
self assert: mth class equals: FamixPythonMethod.
self assert: mth parents anyOne name equals: 'Player'.
self assert: mth name equals: '__init__'.
self assert: mth signature equals: 'self, x, y, joystick_no'
self assert: mth signature equals: '__init__(self, x, y, joystick_no)'
]

{ #category : 'tests - methods' }
Expand Down

0 comments on commit 9ce9f6a

Please sign in to comment.