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()