Files
TransPyC/Test/ZlibTest/App/main.vp
T
TermiNexus 6644d6ce3b test: TestProject/2/3 拆分为 10 个具体测试项目; ZlibTest 并入标准 zlib 库
新项目(各含 project.json + App/main.vp):
- LoopMathTest/LogicFlowTest/ClassArrayTest/NumpyTest (原 TestProject)
- HashLibTest (原 TestProject2 去 zlib)
- GenericOopTest/EnumTest/MpoolOopTest/VectorGenericTest/FileIoTest (原 TestProject3)
ZlibTest 增加"标准 zlib 库(zlib.pyzlib)" section 与 __zlib 并存验证。
2026-08-09 04:06:26 +08:00

27 lines
717 B
Plaintext

import t
import stdio
import string
import __zlib.pyzlib as pyzlib
import __zlib.zdeflate as zdeflate
import __zlib.zinflate as zinflate
import __zlib.zchecksum as zchecksum
import __zlib.zdef as zdef
import __zlib.zhuff as zhuff
import __zlib.test_pyzlib as tpz
import zlib.pyzlib as stdzp
import w32.win32memory
import c
import testcheck
def main() -> t.CInt:
testcheck.begin("ZlibTest: Zlib 压缩库测试")
tpz.main123456()
testcheck.ok("zlib test_pyzlib completed")
# 标准 zlib 库(includes/zlib)与 __zlib 并存验证
testcheck.section("标准 zlib 库 (zlib.pyzlib)")
print(stdzp.runtime_version())
testcheck.ok("zlib runtime version printed")
return testcheck.end()