mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 20:12:21 +02:00
22 lines
No EOL
670 B
Text
22 lines
No EOL
670 B
Text
# This checks that virtual method calls work in the debugger,
|
|
# and also ensures that the virtual indicies properly remap
|
|
# after the interface slot count increases between compiles
|
|
|
|
ShowFile("src/Virtuals.bf")
|
|
GotoText("//Test_Start")
|
|
ToggleBreakpoint()
|
|
|
|
RunWithCompiling()
|
|
AssertEvalEquals("ca.GetA(9)", "2009")
|
|
AssertEvalEquals("cb.GetA(11)", "2011")
|
|
AssertEvalEquals("ca.Korf", "234")
|
|
AssertEvalEquals("cb.Korf", "234")
|
|
StopRunning()
|
|
|
|
ToggleCommentAt("ClassA_IFaces")
|
|
ToggleCommentAt("Test_IFaces")
|
|
RunWithCompiling()
|
|
AssertEvalEquals("ca.GetA(9)", "2009")
|
|
AssertEvalEquals("cb.GetA(11)", "2011")
|
|
AssertEvalEquals("ca.Korf", "234")
|
|
AssertEvalEquals("cb.Korf", "234") |