Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jecisc committed Feb 11, 2025
1 parent 4fb0fee commit 39130a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def identity():
print("identify")
'.

self assert: (self model allWithType: FamixPythonFunction) size equals: 2.
self assert: (self model allWithType: FamixPythonFunction) size equals: 1.

famix := self functionNamed: 'identity'.
self assert: famix isNotNil.
Expand Down Expand Up @@ -209,7 +209,7 @@ FamixPythonImporterTest >> testInnerFunctions [
print("Hello, World!")
inner_func()'.

self assert: self model allFunctions size equals: 3.
self assert: self model allFunctions size equals: 2.
outer := self functionNamed: 'outer_func'.
inner := self functionNamed: 'inner_func'.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ FamixPythonImporterWithClassesTest >> testMethod [
{ #category : 'tests - methods' }
FamixPythonImporterWithClassesTest >> testMethodIsInModel [

self assert: self model numberOfMethods equals: 5
self assert: self model allModelMethods size equals: 5
]

{ #category : 'tests - methods' }
Expand Down Expand Up @@ -127,7 +127,7 @@ FamixPythonImporterWithClassesTest >> testMethodWithParameter [
{ #category : 'tests - methods' }
FamixPythonImporterWithClassesTest >> testMethods [

self assert: self model allMethods size equals: 5.
self assert: self model allModelMethods size equals: 5.
self assert: ((self classNamed: 'Ball') methods anySatisfy: [ :method | method name = 'update' ]).
self assert: ((self classNamed: 'Wall') methods anySatisfy: [ :method | method name = '__init__' ]).
self assert: ((self classNamed: 'Player') methods anySatisfy: [ :method | method name = '__init__' ])
Expand Down

0 comments on commit 39130a4

Please sign in to comment.