diff --git a/src/NewTools-Debugger-Tests/StDebuggerContextInteractionModelTest.class.st b/src/NewTools-Debugger-Tests/StDebuggerContextInteractionModelTest.class.st index e04e43427..ba66fb6e2 100644 --- a/src/NewTools-Debugger-Tests/StDebuggerContextInteractionModelTest.class.st +++ b/src/NewTools-Debugger-Tests/StDebuggerContextInteractionModelTest.class.st @@ -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 [