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
@@ -30,7 +30,7 @@ def test_nested_loop():
|
||||
for j in range(5):
|
||||
if i < j:
|
||||
count += 1
|
||||
# 上三角: 4+3+2+1 = 10
|
||||
# Upper triangle: 4+3+2+1 = 10.
|
||||
testcheck.check(count == 10, "nested loop (count=10)", "nested loop (expect 10)")
|
||||
|
||||
def test_break():
|
||||
@@ -50,7 +50,7 @@ def test_continue():
|
||||
if i % 3 == 0:
|
||||
continue
|
||||
sum_val += i
|
||||
# 跳过 0,3,6,9,12,15,18, 剩余和 = sum(0..19) - sum(0,3,6,9,12,15,18) = 190 - 63 = 127
|
||||
# Skip multiples of 3: 190 - 63 = 127.
|
||||
testcheck.check(sum_val == 127, "continue (sum=127)", "continue (expect 127)")
|
||||
|
||||
def test_range_step():
|
||||
|
||||
Reference in new issue
Block a user