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:
1 parent
c9d741c202
commit
f5da836fbb
86 files changed
+2121
-2121
No files matched your search
+2
-2
@@ -20,7 +20,7 @@ def no_doc_func() -> int:
|
||||
# 同模块类(有 docstring)
|
||||
class LocalClass:
|
||||
"Local class docstring."
|
||||
value: t.CInt
|
||||
value: int
|
||||
|
||||
def local_method(self) -> int:
|
||||
"Local method docstring."
|
||||
@@ -62,7 +62,7 @@ def test_cross_module_doc():
|
||||
_check_doc_null("remote.no_doc_func", remote.no_doc_func.__doc__)
|
||||
|
||||
|
||||
def main() -> t.CInt:
|
||||
def main() -> int:
|
||||
testcheck.begin("DocTest: __doc__ magic string test")
|
||||
test_local_doc()
|
||||
test_cross_module_doc()
|
||||
|
||||
@@ -8,7 +8,7 @@ def remote_func() -> int:
|
||||
|
||||
class RemoteClass:
|
||||
"Remote class docstring."
|
||||
value: t.CInt
|
||||
value: int
|
||||
|
||||
def remote_method(self) -> int:
|
||||
"Remote method docstring."
|
||||
|
||||
Reference in new issue
Block a user