chore(comments): Test 仓注释英文化(R11)
把 81 个 .vp 文件的中文 # 注释与三引号文档串改写为简洁英文,每个连续注释块 <=2 行;运行时中文字符串字面量(testcheck.begin/print 等用户可见消息)保持原样。骨架比对 HEAD 与工作区 112 文件漂移 0,全量 77/77 顺序回归通过。
This commit is contained in:
1 parent
aa5a7e7250
commit
ee6461be46
81 files changed
+1231
-1925
No files matched your search
@@ -14,11 +14,11 @@ def main() -> CInt | CExport:
|
||||
|
||||
testcheck.begin("ListTest: list[T] 堆容器测试")
|
||||
|
||||
# 创建 mbuddy arena
|
||||
# Create the mbuddy arena.
|
||||
arena: bytes = stdlib.malloc(65536)
|
||||
bd: memhub.MemBuddy* = memhub.MemBuddy(arena, 65536)
|
||||
|
||||
# === Test 1: 创建和 append ===
|
||||
# === Test 1: create and append ===
|
||||
testcheck.section("Test 1: 创建和 append")
|
||||
nums = list[int](bd)
|
||||
nums.append(10)
|
||||
@@ -58,7 +58,7 @@ def main() -> CInt | CExport:
|
||||
n3: sizet = nums.__len__()
|
||||
testcheck.check(n3 == 0, "clear OK (0)", "clear FAILED expect 0")
|
||||
|
||||
# === Test 6: 容量增长 (append 超过初始容量 8) ===
|
||||
# === Test 6: capacity growth (append past initial capacity 8) ===
|
||||
testcheck.section("Test 6: 容量增长")
|
||||
nums2 = list[int](bd)
|
||||
i: CInt
|
||||
@@ -76,7 +76,7 @@ def main() -> CInt | CExport:
|
||||
break
|
||||
testcheck.check(ok == 1, "grow data OK", "grow data FAILED")
|
||||
|
||||
# === Test 7: 重新 append 后验证 ===
|
||||
# === Test 7: verify after re-append ===
|
||||
testcheck.section("Test 7: 重新 append")
|
||||
nums2.clear()
|
||||
nums2.append(100)
|
||||
|
||||
Reference in new issue
Block a user