mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-24 18:48:01 +02:00
Beefy::String changes, lambda hotswap fixes
Changed some string internals related to StringViewsma Added an "incompatible capture" error for lambdas when the captures change
This commit is contained in:
parent
767a3fafd9
commit
2f01cc14dd
25 changed files with 544 additions and 180 deletions
28
IDE/Tests/Test1/scripts/HotSwap_Lambdas01.txt
Normal file
28
IDE/Tests/Test1/scripts/HotSwap_Lambdas01.txt
Normal file
|
@ -0,0 +1,28 @@
|
|||
# This tests modifying anonymous lambdas, including changing captured data (both legally and illegally)
|
||||
|
||||
ShowFile("src/HotSwap_Lambdas01.bf")
|
||||
GotoText("//Test_Start")
|
||||
ToggleBreakpoint()
|
||||
RunWithCompiling()
|
||||
|
||||
StepOver()
|
||||
StepOver()
|
||||
StepOver()
|
||||
StepOver()
|
||||
AssertEvalEquals("val0", "200")
|
||||
AssertEvalEquals("val1", "423")
|
||||
AssertEvalEquals("val2", "757")
|
||||
|
||||
ToggleCommentAt("Dlg0_0")
|
||||
ToggleCommentAt("Dlg1_0")
|
||||
ToggleCommentAt("Dlg2_0")
|
||||
Compile()
|
||||
SetExpectError("incompatible captures")
|
||||
StepOver()
|
||||
ExpectError()
|
||||
StepOut()
|
||||
StepOver()
|
||||
StepOver()
|
||||
AssertEvalEquals("val0", "200")
|
||||
AssertEvalEquals("val1", "300")
|
||||
AssertEvalEquals("val2", "523")
|
Loading…
Add table
Add a link
Reference in a new issue