Skip to content

Commit

Permalink
Merge pull request #511 from privat/spdebugger-test-doit
Browse files Browse the repository at this point in the history
add StDebuggerContextInteractionModelTest>>#testCompile to test DoIt-evaluations
  • Loading branch information
MarcusDenker authored Apr 21, 2023
2 parents f79ad42 + 07fa96d commit 1b19f29
Showing 1 changed file with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,36 @@ StDebuggerContextInteractionModelTest >> testBindingOfPrioritizesContextBindings
equals: 42.
]

{ #category : #tests }
StDebuggerContextInteractionModelTest >> testCompile [

| result |
model context
step;
step;
step;
step. "Perform the two first assigments of the method `helperMethodForBindings`"

result := model compiler evaluate: 'instanceVariableForTest'.
self assert: result equals: 42.
instanceVariableForTest := 52.
result := model compiler evaluate: 'instanceVariableForTest'.
self assert: result equals: 52.

result := model compiler evaluate: 'instanceVariableForTest := 62'.
self assert: result equals: 62.
result := model compiler evaluate: 'instanceVariableForTest'.
self assert: result equals: 62.
self assert: instanceVariableForTest equals: 62.

result := model compiler evaluate: 'tempVariableForTest'.
self assert: result equals: 43.
result := model compiler evaluate: 'tempVariableForTest := 53'.
self assert: result equals: 53.
result := model compiler evaluate: 'tempVariableForTest'.
self assert: result equals: 53
]

{ #category : #tests }
StDebuggerContextInteractionModelTest >> testHasBindingsInContextOf [

Expand Down

0 comments on commit 1b19f29

Please sign in to comment.