test: 全仓同步 w32→win32 模块改名与窄化断言适配
This commit is contained in:
1 parent
384fccd8b8
commit
e5e4163167
30 files changed
+148
-147
No files matched your search
@@ -27,8 +27,8 @@ def test_strcpy_for_in():
|
||||
testcheck.section("Test 3: strcpy using for-in")
|
||||
src: char* = "test"
|
||||
# Implement strcpy by hand with for-in.
|
||||
import w32.win32memory
|
||||
buf: char* = w32.win32memory.VirtualAlloc(None, 64, 12288, 4)
|
||||
import win32.win32memory
|
||||
buf: char* = win32.win32memory.VirtualAlloc(None, 64, 12288, 4)
|
||||
if uint64(buf) == 0:
|
||||
stdio.printf("SKIP: VirtualAlloc returned NULL\n")
|
||||
return
|
||||
@@ -42,7 +42,7 @@ def test_strcpy_for_in():
|
||||
# '==' on pointers compares addresses (C-like); use strcmp for contents.
|
||||
testcheck.check(string.strcmp(buf, "test") == 0, "strcpy for-in (result=test)", "strcpy for-in (cmp mismatch)")
|
||||
|
||||
import w32.win32memory
|
||||
import win32.win32memory
|
||||
|
||||
def main() -> int:
|
||||
testcheck.begin("IterTest: 指针迭代测试")
|
||||
|
||||
Reference in new issue
Block a user