Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion IDE/Tests/Test1/scripts/Mixins.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Temporarily broken in LLVM
if (platform != "Win64") Stop()
if (platform == "Win32") Stop()

ShowFile("src/Mixins.bf")
GotoText("//Test_Start")
Expand Down
2 changes: 1 addition & 1 deletion IDE/Tests/Test1/scripts/Splats.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Temporarily broken in LLVM
if (platform != "Win64") Stop()
if (platform == "Win32") Stop()

ShowFile("src/Splats.bf")
GotoText("//SplatTester_SplatC_Call")
Expand Down
19 changes: 19 additions & 0 deletions IDE/Tests/Test1/scripts/Splats02.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Structs passed by value are splatted into their fields: 'this' in a struct method and a struct
# parameter are rebuilt from the parts

if (platform == "Win32") Stop()

ShowFile("src/Splats.bf")
GotoText("//SplatTester_SplatC_Call")
ToggleBreakpoint()
RunWithCompiling()
AssertEvalEquals("sc", "{ mC='Z' mB=1.2 mA=123 }")
StepInto()
AssertEvalEquals("mB", "1.2")
AssertEvalEquals("this.mA", "123")
StepOut()
StepOver()
StepInto()
AssertLineContains("return sc.mA")
AssertEvalEquals("sc", "{ mC='Z' mB=1.2 mA=123 }")
AssertEvalEquals("sc.mA", "123")
26 changes: 26 additions & 0 deletions IDE/Tests/Test1/scripts/Splats03.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Writing to a splatted struct's fields: 'this' in a struct method, and a struct parameter. Both are
# by-value copies, so the caller's struct is unchanged.

if (platform == "Win32") Stop()

ShowFile("src/Splats.bf")
GotoText("//SplatTester_SplatC_Call")
ToggleBreakpoint()
RunWithCompiling()
StepOver()
StepInto()
AssertLineContains("return mB")
AssertEvalEquals("mB = 7.5f", "7.5")
AssertEvalEquals("mB", "7.5")
AssertEvalEquals("this", "{ mC='Z' mB=7.5 mA=123 }")
StepOut()
AssertEvalEquals("sc.mB", "1.2")
StepInto()
AssertLineContains("return sc.mA")
AssertEvalEquals("sc.mA = 5", "5")
AssertEvalEquals("sc.mA", "5")
AssertEvalEquals("sc.mA + 1", "6")
AssertEvalEquals("sc.mC, assign='Q'", "'Q'")
AssertEvalEquals("sc", "{ mC='Q' mB=1.2 mA=5 }")
StepOut()
AssertEvalEquals("sc.mA", "123")
Loading
Loading