落地 12.2 二十个用例目录:toml + .st + 期望表。

- tests/cases/ 01~20:13 正例 / 6 负例 / 1 运行时故障
- 负例冻结报错类别:非 GVL 写全局、同名全局、io.var 未声明、FUNCTION 写全局、未声明实例、循环调用
- tests/README 补充用例清单与点亮节奏
This commit is contained in:
2026-08-19 14:43:47 +08:00
parent dd7f7bcba7
commit ef94ab1987
70 changed files with 513 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
# 期望:编译通过;运行行为与 Δt 一致
- `dt_ms = 10``PT = 30ms`:前 2 周期 `Q` = FALSE,第 3 周期起 `Q` = TRUE
- 累计用映像里的 Δt,不用 wall clock
+8
View File
@@ -0,0 +1,8 @@
PROGRAM MAIN
VAR
t : TON;
q : BOOL;
END_VAR
t(in := TRUE, pt := T#30ms);
q := t.Q;
END_PROGRAM
+8
View File
@@ -0,0 +1,8 @@
[project]
name = "case17"
entry = "program MAIN"
cycle_limit = 1000
dt_ms = 10
[files]
st = ["main.st"]