1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00
Beef/IDE/Tests/Test1/scripts/HotSwap_Data04.txt
2019-08-23 11:56:54 -07:00

23 lines
No EOL
636 B
Text

ShowFile("src/HotSwap_Data.bf")
GotoText("//Test_Test04")
ToggleBreakpoint()
RunWithCompiling()
# Both of these interface will have the same slot number
ToggleCommentAt("ClassC_IFaceB_WithComma")
SetExpectError("collision error")
Compile()
ExpectError()
# Switching interfaces can work if there are no allocations, but this StepInto DOES have an allocation
StepInto()
ToggleCommentAt("ClassC_IFaceA")
ToggleCommentAt("ClassC_IFaceB_WithComma")
ToggleCommentAt("ClassC_IFaceB_WithoutComma")
SetExpectError("data changes")
Compile()
ExpectError()
# But it should succeeed when were back out in Test() with no allocs
StepOut()
Compile()