Add tests for loop exit, local/global scope, concurrency, and string escapes

This commit is contained in:
Stone_Red
2026-03-05 01:26:16 +01:00
parent 265f20d4b7
commit ecb6415457
5 changed files with 215 additions and 0 deletions
+18
View File
@@ -200,6 +200,24 @@ public class CodeFlowTests
YesNtAssert.IsLastLineEqual(lines, "ok");
}
[TestMethod]
public void GotoInsideLoopExitsLoopTest()
{
List<string> lines =
[
"var hit = no",
"while 1 == 1:",
"var hit = yes",
"goto done",
"end_while",
"label done:",
"${hit}"
];
YesNtAssert.IsLastLineEqual(lines, "yes");
}
[TestMethod]
public void LabelWithoutColonFailsTest()
{