1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 12:02:21 +02:00
Beef/IDE/Tests/Test1/scripts/HotSwap_Funcs.txt

50 lines
860 B
Text
Raw Normal View History

2019-08-23 11:56:54 -07:00
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")