Home | History | Annotate | Download | only in test

Lines Matching refs:_dll

11     _dll = CDLL(_ctypes_test.__file__)
14 return c_longlong.in_dll(self._dll, "last_tf_arg_s").value
16 return c_ulonglong.in_dll(self._dll, "last_tf_arg_u").value
19 self._dll.tf_b.restype = c_byte
20 self._dll.tf_b.argtypes = (c_byte,)
21 self.assertEqual(self._dll.tf_b(-126), -42)
25 self._dll.tf_bb.restype = c_byte
26 self._dll.tf_bb.argtypes = (c_byte, c_byte)
27 self.assertEqual(self._dll.tf_bb(0, -126), -42)
31 self._dll.tf_B.restype = c_ubyte
32 self._dll.tf_B.argtypes = (c_ubyte,)
33 self.assertEqual(self._dll.tf_B(255), 85)
37 self._dll.tf_bB.restype = c_ubyte
38 self._dll.tf_bB.argtypes = (c_byte, c_ubyte)
39 self.assertEqual(self._dll.tf_bB(0, 255), 85)
43 self._dll.tf_h.restype = c_short
44 self._dll.tf_h.argtypes = (c_short,)
45 self.assertEqual(self._dll.tf_h(-32766), -10922)
49 self._dll.tf_bh.restype = c_short
50 self._dll.tf_bh.argtypes = (c_byte, c_short)
51 self.assertEqual(self._dll.tf_bh(0, -32766), -10922)
55 self._dll.tf_H.restype = c_ushort
56 self._dll.tf_H.argtypes = (c_ushort,)
57 self.assertEqual(self._dll.tf_H(65535), 21845)
61 self._dll.tf_bH.restype = c_ushort
62 self._dll.tf_bH.argtypes = (c_byte, c_ushort)
63 self.assertEqual(self._dll.tf_bH(0, 65535), 21845)
67 self._dll.tf_i.restype = c_int
68 self._dll.tf_i.argtypes = (c_int,)
69 self.assertEqual(self._dll.tf_i(-2147483646), -715827882)
73 self._dll.tf_bi.restype = c_int
74 self._dll.tf_bi.argtypes = (c_byte, c_int)
75 self.assertEqual(self._dll.tf_bi(0, -2147483646), -715827882)
79 self._dll.tf_I.restype = c_uint
80 self._dll.tf_I.argtypes = (c_uint,)
81 self.assertEqual(self._dll.tf_I(4294967295), 1431655765)
85 self._dll.tf_bI.restype = c_uint
86 self._dll.tf_bI.argtypes = (c_byte, c_uint)
87 self.assertEqual(self._dll.tf_bI(0, 4294967295), 1431655765)
91 self._dll.tf_l.restype = c_long
92 self._dll.tf_l.argtypes = (c_long,)
93 self.assertEqual(self._dll.tf_l(-2147483646), -715827882)
97 self._dll.tf_bl.restype = c_long
98 self._dll.tf_bl.argtypes = (c_byte, c_long)
99 self.assertEqual(self._dll.tf_bl(0, -2147483646), -715827882)
103 self._dll.tf_L.restype = c_ulong
104 self._dll.tf_L.argtypes = (c_ulong,)
105 self.assertEqual(self._dll.tf_L(4294967295), 1431655765)
109 self._dll.tf_bL.restype = c_ulong
110 self._dll.tf_bL.argtypes = (c_char, c_ulong)
111 self.assertEqual(self._dll.tf_bL(' ', 4294967295), 1431655765)
115 self._dll.tf_q.restype = c_longlong
116 self._dll.tf_q.argtypes = (c_longlong, )
117 self.assertEqual(self._dll.tf_q(-9223372036854775806), -3074457345618258602)
121 self._dll.tf_bq.restype = c_longlong
122 self._dll.tf_bq.argtypes = (c_byte, c_longlong)
123 self.assertEqual(self._dll.tf_bq(0, -9223372036854775806), -3074457345618258602)
127 self._dll.tf_Q.restype = c_ulonglong
128 self._dll.tf_Q.argtypes = (c_ulonglong, )
129 self.assertEqual(self._dll.tf_Q(18446744073709551615), 6148914691236517205)
133 self._dll.tf_bQ.restype = c_ulonglong
134 self._dll.tf_bQ.argtypes = (c_byte, c_ulonglong)
135 self.assertEqual(self._dll.tf_bQ(0, 18446744073709551615), 6148914691236517205)
139 self._dll.tf_f.restype = c_float
140 self._dll.tf_f.argtypes = (c_float,)
141 self.assertEqual(self._dll.tf_f(-42.), -14.)
145 self._dll.tf_bf.restype = c_float
146 self._dll.tf_bf.argtypes = (c_byte, c_float)
147 self.assertEqual(self._dll.tf_bf(0, -42.), -14.)
151 self._dll.tf_d.restype = c_double
152 self._dll.tf_d.argtypes = (c_double,)
153 self.assertEqual(self._dll.tf_d(42.), 14.)
157 self._dll.tf_bd.restype = c_double
158 self._dll.tf_bd.argtypes = (c_byte, c_double)
159 self.assertEqual(self._dll.tf_bd(0, 42.), 14.)
163 self._dll.tf_D.restype = c_longdouble
164 self._dll.tf_D.argtypes = (c_longdouble,)
165 self.assertEqual(self._dll.tf_D(42.), 14.)
169 self._dll.tf_bD.restype = c_longdouble
170 self._dll.tf_bD.argtypes = (c_byte, c_longdouble)
171 self.assertEqual(self._dll.tf_bD(0, 42.), 14.)
177 self._dll.tf_i.restype = process_result
178 self._dll.tf_i.argtypes = (c_int,)
179 self.assertEqual(self._dll.tf_i(42), 28)
181 self.assertEqual(self._dll.tf_i(-42), -28)
185 self._dll.tv_i.restype = None
186 self._dll.tv_i.argtypes = (c_int,)
187 self.assertEqual(self._dll.tv_i(42), None)
189 self.assertEqual(self._dll.tv_i(-42), None)
209 _dll = stdcall_dll(_ctypes_test.__file__)