mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 12:02:21 +02:00
50 lines
860 B
Text
50 lines
860 B
Text
![]() |
ShowFile("src/HotSwap.bf")
|
||
|
GotoText("//HotStart_Funcs")
|
||
|
ToggleBreakpoint()
|
||
|
RunWithCompiling()
|
||
|
|
||
|
StepOver()
|
||
|
StepOver()
|
||
|
StepOver()
|
||
|
StepOver()
|
||
|
|
||
|
# We're on TestFuncs_Compare now
|
||
|
GotoText("//HotTester_TestFuncs_Func_Return")
|
||
|
AdjustCursor(0, 1)
|
||
|
CursorToLineEnd()
|
||
|
AdjustCursor(-1, 0)
|
||
|
InsertText("4")
|
||
|
|
||
|
GotoText("//HotB_MethodA_Return")
|
||
|
AdjustCursor(0, 1)
|
||
|
CursorToLineEnd()
|
||
|
AdjustCursor(-1, 0)
|
||
|
InsertText("9")
|
||
|
|
||
|
Compile()
|
||
|
|
||
|
GotoText("//TestFuncs_Compare_Calls")
|
||
|
RunToCursor()
|
||
|
StepOver()
|
||
|
AssertEvalEquals("val", "209")
|
||
|
StepOver()
|
||
|
AssertEvalEquals("val", "1234")
|
||
|
StepOver()
|
||
|
AssertEvalEquals("val", "1234")
|
||
|
|
||
|
Stop()
|
||
|
|
||
|
StepOut()
|
||
|
StepOut()
|
||
|
ToggleCommentAt("HotTester_TestFuncs_Func2")
|
||
|
ToggleCommentAt("TestFuncs2_Body")
|
||
|
Compile()
|
||
|
StepInto()
|
||
|
StepOver()
|
||
|
ToggleCommentAt("TestFuncs2_Compare_Body")
|
||
|
Compile()
|
||
|
StepInto()
|
||
|
StepOver()
|
||
|
StepOver()
|
||
|
StepOver()
|
||
|
AssertEvalEquals("val", "444")
|