[Python-checkins] python/dist/src/Mac/Demo/calldll testcalldll.py,
1.3, 1.4
tim_one at users.sourceforge.net
tim_one at users.sourceforge.net
Sun Jul 18 07:58:37 CEST 2004
- Previous message: [Python-checkins] python/dist/src/Mac/Demo/applescript/Disk_Copy
Special_Events.py, 1.2, 1.3 Standard_Suite.py, 1.2,
1.3 Utility_Events.py, 1.1, 1.2 __init__.py, 1.1, 1.2
- Next message: [Python-checkins] python/dist/src/Mac/Demo/example0 checktext.py,
1.2, 1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Mac/Demo/calldll
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29056/Demo/calldll
Modified Files:
testcalldll.py
Log Message:
Whitespace normalization, via reindent.py.
Index: testcalldll.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Demo/calldll/testcalldll.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** testcalldll.py 12 Feb 2004 17:35:12 -0000 1.3
--- testcalldll.py 18 Jul 2004 05:58:04 -0000 1.4
***************
*** 9,22 ****
lib = calldll.getdiskfragment(fss, 'calldll.ppc.slb')
! cdll_b_bbbbbbbb = calldll.newcall(lib.cdll_b_bbbbbbbb, 'Byte', 'InByte', 'InByte',
! 'InByte', 'InByte','InByte', 'InByte','InByte', 'InByte')
! cdll_h_hhhhhhhh = calldll.newcall(lib.cdll_h_hhhhhhhh, 'Short', 'InShort', 'InShort',
! 'InShort', 'InShort','InShort', 'InShort','InShort', 'InShort')
! cdll_l_llllllll = calldll.newcall(lib.cdll_l_llllllll, 'Long', 'InLong', 'InLong',
! 'InLong', 'InLong','InLong', 'InLong','InLong', 'InLong')
!
cdll_N_ssssssss = calldll.newcall(lib.cdll_N_ssssssss, 'None', 'InString', 'InString',
! 'InString', 'InString', 'InString', 'InString', 'InString', 'InString')
!
cdll_o_l = calldll.newcall(lib.cdll_o_l, 'OSErr', 'InLong')
--- 9,22 ----
lib = calldll.getdiskfragment(fss, 'calldll.ppc.slb')
! cdll_b_bbbbbbbb = calldll.newcall(lib.cdll_b_bbbbbbbb, 'Byte', 'InByte', 'InByte',
! 'InByte', 'InByte','InByte', 'InByte','InByte', 'InByte')
! cdll_h_hhhhhhhh = calldll.newcall(lib.cdll_h_hhhhhhhh, 'Short', 'InShort', 'InShort',
! 'InShort', 'InShort','InShort', 'InShort','InShort', 'InShort')
! cdll_l_llllllll = calldll.newcall(lib.cdll_l_llllllll, 'Long', 'InLong', 'InLong',
! 'InLong', 'InLong','InLong', 'InLong','InLong', 'InLong')
!
cdll_N_ssssssss = calldll.newcall(lib.cdll_N_ssssssss, 'None', 'InString', 'InString',
! 'InString', 'InString', 'InString', 'InString', 'InString', 'InString')
!
cdll_o_l = calldll.newcall(lib.cdll_o_l, 'OSErr', 'InLong')
***************
*** 31,125 ****
rv = cdll_b_bbbbbbbb(1, 2, 3, 4, 5, 6, 7, 8)
if rv == 36:
! print 'ok.'
else:
! print 'Failed, returned', rv
!
print 'Test cdll_b_bbbbbbbb negative'
rv = cdll_b_bbbbbbbb(-1, -2, -3, -4, -5, -6, -7, -8)
if rv == -36:
! print 'ok.'
else:
! print 'Failed, returned', rv
print 'Test cdll_h_hhhhhhhh'
rv = cdll_h_hhhhhhhh(1, 2, 3, 4, 5, 6, 7, 8)
if rv == 36:
! print 'ok.'
else:
! print 'Failed, returned', rv
!
print 'Test cdll_h_hhhhhhhh negative'
rv = cdll_h_hhhhhhhh(-1, -2, -3, -4, -5, -6, -7, -8)
if rv == -36:
! print 'ok.'
else:
! print 'Failed, returned', rv
print 'Test cdll_l_llllllll'
rv = cdll_l_llllllll(1, 2, 3, 4, 5, 6, 7, 8)
if rv == 36:
! print 'ok.'
else:
! print 'Failed, returned', rv
!
print 'Test cdll_l_llllllll negative'
rv = cdll_l_llllllll(-1, -2, -3, -4, -5, -6, -7, -8)
if rv == -36:
! print 'ok.'
else:
! print 'Failed, returned', rv
!
print 'Test cdll_N_ssssssss'
print 'Should print one two three four five six seven eight'
rv = cdll_N_ssssssss('one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight')
if rv == None:
! print 'ok.'
else:
! print 'Failed, returned', rv
!
print 'Test cdll_o_l(0)'
rv = cdll_o_l(0)
if rv == None:
! print 'ok.'
else:
! print 'Error, returned', rv
!
print 'Test cdll_o_l(-100)'
try:
! rv = cdll_o_l(-100)
! print 'Error, did not raise exception, returned', rv
except MacOS.Error, arg:
! if arg[0] == -100:
! print 'ok.'
! else:
! print 'Error, returned incorrect exception arg:', arg[0]
!
print 'Test cdll_N_pp'
rv = cdll_N_pp('pascal string')
if rv == 'Was: pascal string':
! print 'ok.'
else:
! print 'Failed, returned', repr(rv)
!
print 'Test cdll_N_bb'
rv = cdll_N_bb(-100)
if rv == -100:
! print 'ok.'
else:
! print 'Failed, returned', rv
!
print 'Test cdll_N_hh'
rv = cdll_N_hh(-100)
if rv == -100:
! print 'ok.'
else:
! print 'Failed, returned', rv
!
print 'Test cdll_N_ll'
rv = cdll_N_ll(-100)
if rv == -100:
! print 'ok.'
else:
! print 'Failed, returned', rv
print 'Test cdll_N_sH'
--- 31,125 ----
rv = cdll_b_bbbbbbbb(1, 2, 3, 4, 5, 6, 7, 8)
if rv == 36:
! print 'ok.'
else:
! print 'Failed, returned', rv
!
print 'Test cdll_b_bbbbbbbb negative'
rv = cdll_b_bbbbbbbb(-1, -2, -3, -4, -5, -6, -7, -8)
if rv == -36:
! print 'ok.'
else:
! print 'Failed, returned', rv
print 'Test cdll_h_hhhhhhhh'
rv = cdll_h_hhhhhhhh(1, 2, 3, 4, 5, 6, 7, 8)
if rv == 36:
! print 'ok.'
else:
! print 'Failed, returned', rv
!
print 'Test cdll_h_hhhhhhhh negative'
rv = cdll_h_hhhhhhhh(-1, -2, -3, -4, -5, -6, -7, -8)
if rv == -36:
! print 'ok.'
else:
! print 'Failed, returned', rv
print 'Test cdll_l_llllllll'
rv = cdll_l_llllllll(1, 2, 3, 4, 5, 6, 7, 8)
if rv == 36:
! print 'ok.'
else:
! print 'Failed, returned', rv
!
print 'Test cdll_l_llllllll negative'
rv = cdll_l_llllllll(-1, -2, -3, -4, -5, -6, -7, -8)
if rv == -36:
! print 'ok.'
else:
! print 'Failed, returned', rv
!
print 'Test cdll_N_ssssssss'
print 'Should print one two three four five six seven eight'
rv = cdll_N_ssssssss('one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight')
if rv == None:
! print 'ok.'
else:
! print 'Failed, returned', rv
!
print 'Test cdll_o_l(0)'
rv = cdll_o_l(0)
if rv == None:
! print 'ok.'
else:
! print 'Error, returned', rv
!
print 'Test cdll_o_l(-100)'
try:
! rv = cdll_o_l(-100)
! print 'Error, did not raise exception, returned', rv
except MacOS.Error, arg:
! if arg[0] == -100:
! print 'ok.'
! else:
! print 'Error, returned incorrect exception arg:', arg[0]
!
print 'Test cdll_N_pp'
rv = cdll_N_pp('pascal string')
if rv == 'Was: pascal string':
! print 'ok.'
else:
! print 'Failed, returned', repr(rv)
!
print 'Test cdll_N_bb'
rv = cdll_N_bb(-100)
if rv == -100:
! print 'ok.'
else:
! print 'Failed, returned', rv
!
print 'Test cdll_N_hh'
rv = cdll_N_hh(-100)
if rv == -100:
! print 'ok.'
else:
! print 'Failed, returned', rv
!
print 'Test cdll_N_ll'
rv = cdll_N_ll(-100)
if rv == -100:
! print 'ok.'
else:
! print 'Failed, returned', rv
print 'Test cdll_N_sH'
***************
*** 127,132 ****
rv = cdll_N_sH('new data', h)
if rv == None and h.data == 'new data':
! print 'ok.'
else:
! print 'Failed, rv is', rv, 'and handle data is', repr(rv.data)
sys.exit(1)
--- 127,132 ----
rv = cdll_N_sH('new data', h)
if rv == None and h.data == 'new data':
! print 'ok.'
else:
! print 'Failed, rv is', rv, 'and handle data is', repr(rv.data)
sys.exit(1)
- Previous message: [Python-checkins] python/dist/src/Mac/Demo/applescript/Disk_Copy
Special_Events.py, 1.2, 1.3 Standard_Suite.py, 1.2,
1.3 Utility_Events.py, 1.1, 1.2 __init__.py, 1.1, 1.2
- Next message: [Python-checkins] python/dist/src/Mac/Demo/example0 checktext.py,
1.2, 1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Python-checkins
mailing list