chore(test): 迁移测试夹具到新语法

机械规则 R2/R3/R4/R6/R7/R8/R13 + R16 保守子集,共 86 文件 2127 行。R1(T | t.CPtr)与 R12(while 下标循环)未做,仍列为待办。全量 77/77 顺序回归通过。
This commit is contained in:
TermiNexus committed 2026-10-05 19:59:02 +08:00
1 parent c9d741c202
commit f5da836fbb
86 files changed
+2121 -2121

No files matched your search

+2 -2
View File
@@ -4,7 +4,7 @@ import stdio
# 模块级全局定长数组(rawarray 复刻 t.CArray)
g_arr: rawarray[t.CInt, 4] = [10, 20, 30, 40]
g_arr: rawarray[int, 4] = [10, 20, 30, 40]
# struct 内嵌定长数组字段
@@ -13,7 +13,7 @@ class Ctx:
buf: rawarray[uint8, 64]
def main() -> t.CInt | t.CExport:
def main() -> int | t.CExport:
# 1) 全局数组读取
stdio.printf("1 g_arr[0]=%d g_arr[3]=%d (expect 10 40)\n", g_arr[0], g_arr[3])