1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00
Beef/IDE/Tests/Test1/scripts/HotSwap_Interfaces.txt

33 lines
705 B
Text
Raw Normal View History

2019-08-23 11:56:54 -07:00
# This tests hot adding an unreified interface, hot adding interface methods,
# and calling hot-added methods
ShowFile("src/HotSwap.bf")
GotoText("//HotStart_Interfaces")
ToggleBreakpoint()
RunWithCompiling()
StepOver()
AssertEvalEquals("hot.IHotA()", "ERROR:'Unable to find address for method, possibly due to compiler optimizations.'")
ToggleCommentAt("HotTester_TestIHotA")
Compile()
StepInto()
StepOver()
StepOver()
AssertEvalEquals("val", "15")
AssertEvalEquals("hot.IHotA()", "15")
ToggleCommentAt("IHot_IHotB")
ToggleCommentAt("HotTester_TestIHotB")
Compile()
Stop()
2019-08-23 11:56:54 -07:00
# Steps out
StepOver()
StepInto()
StepOver()
StepOver()
AssertEvalEquals("val", "16")
AssertEvalEquals("hot.IHotB()", "16")