# This tests that loop over an array correctly steps over the array accessor

ShowFile("src/bugs/Bug002.bf")
GotoText("//Bug002_DoTest")
ToggleBreakpoint()
RunWithCompiling()
StepInto()
StepOver()
AssertEvalEquals("val, na", "\"aaa\"")
StepOver()
StepOver()
AssertEvalEquals("val, na", "\"bbb\"")
StepOver()
StepOver()
AssertEvalEquals("val, na", "\"ccc\"")
StepOver()
StepOver()
StepOver()
AssertEvalEquals("val2", "999")