/external/python/cpython2/Lib/ctypes/test/ |
test_buffers.py | 9 self.assertEqual(len(b), 32) 10 self.assertEqual(sizeof(b), 32 * sizeof(c_char)) 14 self.assertEqual(len(b), 4) # trailing nul char 15 self.assertEqual(sizeof(b), 4 * sizeof(c_char)) 17 self.assertEqual(b[0], "a") 18 self.assertEqual(b[:], "abc\0") 19 self.assertEqual(b[::], "abc\0") 20 self.assertEqual(b[::-1], "\0cba") 21 self.assertEqual(b[::2], "ac") 22 self.assertEqual(b[::5], "a" [all...] |
test_sizes.py | 11 self.assertEqual(1, sizeof(c_int8)) 12 self.assertEqual(1, sizeof(c_uint8)) 15 self.assertEqual(2, sizeof(c_int16)) 16 self.assertEqual(2, sizeof(c_uint16)) 19 self.assertEqual(4, sizeof(c_int32)) 20 self.assertEqual(4, sizeof(c_uint32)) 23 self.assertEqual(8, sizeof(c_int64)) 24 self.assertEqual(8, sizeof(c_uint64)) 27 self.assertEqual(sizeof(c_void_p), sizeof(c_size_t)) 30 self.assertEqual(sizeof(c_void_p), sizeof(c_ssize_t) [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/ctypes/test/ |
test_buffers.py | 8 self.assertEqual(len(b), 32) 9 self.assertEqual(sizeof(b), 32 * sizeof(c_char)) 13 self.assertEqual(len(b), 4) # trailing nul char 14 self.assertEqual(sizeof(b), 4 * sizeof(c_char)) 16 self.assertEqual(b[0], "a") 17 self.assertEqual(b[:], "abc\0") 18 self.assertEqual(b[::], "abc\0") 19 self.assertEqual(b[::-1], "\0cba") 20 self.assertEqual(b[::2], "ac") 21 self.assertEqual(b[::5], "a" [all...] |
test_sizes.py | 11 self.assertEqual(1, sizeof(c_int8)) 12 self.assertEqual(1, sizeof(c_uint8)) 15 self.assertEqual(2, sizeof(c_int16)) 16 self.assertEqual(2, sizeof(c_uint16)) 19 self.assertEqual(4, sizeof(c_int32)) 20 self.assertEqual(4, sizeof(c_uint32)) 23 self.assertEqual(8, sizeof(c_int64)) 24 self.assertEqual(8, sizeof(c_uint64)) 27 self.assertEqual(sizeof(c_void_p), sizeof(c_size_t)) 30 self.assertEqual(sizeof(c_void_p), sizeof(c_ssize_t) [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/ctypes/test/ |
test_buffers.py | 8 self.assertEqual(len(b), 32) 9 self.assertEqual(sizeof(b), 32 * sizeof(c_char)) 13 self.assertEqual(len(b), 4) # trailing nul char 14 self.assertEqual(sizeof(b), 4 * sizeof(c_char)) 16 self.assertEqual(b[0], "a") 17 self.assertEqual(b[:], "abc\0") 18 self.assertEqual(b[::], "abc\0") 19 self.assertEqual(b[::-1], "\0cba") 20 self.assertEqual(b[::2], "ac") 21 self.assertEqual(b[::5], "a" [all...] |
test_sizes.py | 11 self.assertEqual(1, sizeof(c_int8)) 12 self.assertEqual(1, sizeof(c_uint8)) 15 self.assertEqual(2, sizeof(c_int16)) 16 self.assertEqual(2, sizeof(c_uint16)) 19 self.assertEqual(4, sizeof(c_int32)) 20 self.assertEqual(4, sizeof(c_uint32)) 23 self.assertEqual(8, sizeof(c_int64)) 24 self.assertEqual(8, sizeof(c_uint64)) 27 self.assertEqual(sizeof(c_void_p), sizeof(c_size_t)) 30 self.assertEqual(sizeof(c_void_p), sizeof(c_ssize_t) [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ctypes/test/ |
test_buffers.py | 8 self.assertEqual(len(b), 32) 9 self.assertEqual(sizeof(b), 32 * sizeof(c_char)) 13 self.assertEqual(len(b), 4) # trailing nul char 14 self.assertEqual(sizeof(b), 4 * sizeof(c_char)) 16 self.assertEqual(b[0], "a") 17 self.assertEqual(b[:], "abc\0") 18 self.assertEqual(b[::], "abc\0") 19 self.assertEqual(b[::-1], "\0cba") 20 self.assertEqual(b[::2], "ac") 21 self.assertEqual(b[::5], "a" [all...] |
test_sizes.py | 11 self.assertEqual(1, sizeof(c_int8)) 12 self.assertEqual(1, sizeof(c_uint8)) 15 self.assertEqual(2, sizeof(c_int16)) 16 self.assertEqual(2, sizeof(c_uint16)) 19 self.assertEqual(4, sizeof(c_int32)) 20 self.assertEqual(4, sizeof(c_uint32)) 23 self.assertEqual(8, sizeof(c_int64)) 24 self.assertEqual(8, sizeof(c_uint64)) 27 self.assertEqual(sizeof(c_void_p), sizeof(c_size_t)) 30 self.assertEqual(sizeof(c_void_p), sizeof(c_ssize_t) [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ctypes/test/ |
test_buffers.py | 8 self.assertEqual(len(b), 32) 9 self.assertEqual(sizeof(b), 32 * sizeof(c_char)) 13 self.assertEqual(len(b), 4) # trailing nul char 14 self.assertEqual(sizeof(b), 4 * sizeof(c_char)) 16 self.assertEqual(b[0], "a") 17 self.assertEqual(b[:], "abc\0") 18 self.assertEqual(b[::], "abc\0") 19 self.assertEqual(b[::-1], "\0cba") 20 self.assertEqual(b[::2], "ac") 21 self.assertEqual(b[::5], "a" [all...] |
test_sizes.py | 11 self.assertEqual(1, sizeof(c_int8)) 12 self.assertEqual(1, sizeof(c_uint8)) 15 self.assertEqual(2, sizeof(c_int16)) 16 self.assertEqual(2, sizeof(c_uint16)) 19 self.assertEqual(4, sizeof(c_int32)) 20 self.assertEqual(4, sizeof(c_uint32)) 23 self.assertEqual(8, sizeof(c_int64)) 24 self.assertEqual(8, sizeof(c_uint64)) 27 self.assertEqual(sizeof(c_void_p), sizeof(c_size_t)) 30 self.assertEqual(sizeof(c_void_p), sizeof(c_ssize_t) [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_int_literal.py | 14 self.assertEqual(0x0, 0X0)
15 self.assertEqual(0x1, 0X1)
16 self.assertEqual(0x123456789abcdef, 0X123456789abcdef)
18 self.assertEqual(0x0, 0)
19 self.assertEqual(0x10, 16)
20 self.assertEqual(0x7fffffff, 2147483647)
21 self.assertEqual(0x7fffffffffffffff, 9223372036854775807)
23 self.assertEqual(-(0x0), 0)
24 self.assertEqual(-(0x10), -16)
25 self.assertEqual(-(0x7fffffff), -2147483647) [all...] |
test_typechecks.py | 35 self.assertEqual(Integer.__subclasscheck__(int), True)
36 self.assertEqual(Integer.__subclasscheck__(float), False)
39 self.assertEqual(issubclass(int, Integer), True)
40 self.assertEqual(issubclass(int, (Integer,)), True)
41 self.assertEqual(issubclass(float, Integer), False)
42 self.assertEqual(issubclass(float, (Integer,)), False)
45 self.assertEqual(isinstance(42, Integer), True)
46 self.assertEqual(isinstance(42, (Integer,)), True)
47 self.assertEqual(isinstance(3.14, Integer), False)
48 self.assertEqual(isinstance(3.14, (Integer,)), False) [all...] |
test_int.py | 50 self.assertEqual(int(314), 314)
51 self.assertEqual(int(3.14), 3)
52 self.assertEqual(int(314L), 314)
54 self.assertEqual(int(-3.14), -3)
55 self.assertEqual(int(3.9), 3)
56 self.assertEqual(int(-3.9), -3)
57 self.assertEqual(int(3.5), 3)
58 self.assertEqual(int(-3.5), -3)
60 self.assertEqual(int("10",16), 16L)
62 self.assertEqual(int(unicode("10"),16), 16L) [all...] |
/external/python/cpython2/Lib/test/ |
test_int_literal.py | 14 self.assertEqual(0x0, 0X0) 15 self.assertEqual(0x1, 0X1) 16 self.assertEqual(0x123456789abcdef, 0X123456789abcdef) 18 self.assertEqual(0x0, 0) 19 self.assertEqual(0x10, 16) 20 self.assertEqual(0x7fffffff, 2147483647) 21 self.assertEqual(0x7fffffffffffffff, 9223372036854775807) 23 self.assertEqual(-(0x0), 0) 24 self.assertEqual(-(0x10), -16) 25 self.assertEqual(-(0x7fffffff), -2147483647 [all...] |
test_typechecks.py | 35 self.assertEqual(Integer.__subclasscheck__(int), True) 36 self.assertEqual(Integer.__subclasscheck__(float), False) 39 self.assertEqual(issubclass(int, Integer), True) 40 self.assertEqual(issubclass(int, (Integer,)), True) 41 self.assertEqual(issubclass(float, Integer), False) 42 self.assertEqual(issubclass(float, (Integer,)), False) 45 self.assertEqual(isinstance(42, Integer), True) 46 self.assertEqual(isinstance(42, (Integer,)), True) 47 self.assertEqual(isinstance(3.14, Integer), False) 48 self.assertEqual(isinstance(3.14, (Integer,)), False [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_int_literal.py | 14 self.assertEqual(0x0, 0X0) 15 self.assertEqual(0x1, 0X1) 16 self.assertEqual(0x123456789abcdef, 0X123456789abcdef) 18 self.assertEqual(0x0, 0) 19 self.assertEqual(0x10, 16) 20 self.assertEqual(0x7fffffff, 2147483647) 21 self.assertEqual(0x7fffffffffffffff, 9223372036854775807) 23 self.assertEqual(-(0x0), 0) 24 self.assertEqual(-(0x10), -16) 25 self.assertEqual(-(0x7fffffff), -2147483647 [all...] |
test_typechecks.py | 35 self.assertEqual(Integer.__subclasscheck__(int), True) 36 self.assertEqual(Integer.__subclasscheck__(float), False) 39 self.assertEqual(issubclass(int, Integer), True) 40 self.assertEqual(issubclass(int, (Integer,)), True) 41 self.assertEqual(issubclass(float, Integer), False) 42 self.assertEqual(issubclass(float, (Integer,)), False) 45 self.assertEqual(isinstance(42, Integer), True) 46 self.assertEqual(isinstance(42, (Integer,)), True) 47 self.assertEqual(isinstance(3.14, Integer), False) 48 self.assertEqual(isinstance(3.14, (Integer,)), False [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_int_literal.py | 14 self.assertEqual(0x0, 0X0) 15 self.assertEqual(0x1, 0X1) 16 self.assertEqual(0x123456789abcdef, 0X123456789abcdef) 18 self.assertEqual(0x0, 0) 19 self.assertEqual(0x10, 16) 20 self.assertEqual(0x7fffffff, 2147483647) 21 self.assertEqual(0x7fffffffffffffff, 9223372036854775807) 23 self.assertEqual(-(0x0), 0) 24 self.assertEqual(-(0x10), -16) 25 self.assertEqual(-(0x7fffffff), -2147483647 [all...] |
test_typechecks.py | 35 self.assertEqual(Integer.__subclasscheck__(int), True) 36 self.assertEqual(Integer.__subclasscheck__(float), False) 39 self.assertEqual(issubclass(int, Integer), True) 40 self.assertEqual(issubclass(int, (Integer,)), True) 41 self.assertEqual(issubclass(float, Integer), False) 42 self.assertEqual(issubclass(float, (Integer,)), False) 45 self.assertEqual(isinstance(42, Integer), True) 46 self.assertEqual(isinstance(42, (Integer,)), True) 47 self.assertEqual(isinstance(3.14, Integer), False) 48 self.assertEqual(isinstance(3.14, (Integer,)), False [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_int_literal.py | 14 self.assertEqual(0x0, 0X0) 15 self.assertEqual(0x1, 0X1) 16 self.assertEqual(0x123456789abcdef, 0X123456789abcdef) 18 self.assertEqual(0x0, 0) 19 self.assertEqual(0x10, 16) 20 self.assertEqual(0x7fffffff, 2147483647) 21 self.assertEqual(0x7fffffffffffffff, 9223372036854775807) 23 self.assertEqual(-(0x0), 0) 24 self.assertEqual(-(0x10), -16) 25 self.assertEqual(-(0x7fffffff), -2147483647 [all...] |
test_typechecks.py | 35 self.assertEqual(Integer.__subclasscheck__(int), True) 36 self.assertEqual(Integer.__subclasscheck__(float), False) 39 self.assertEqual(issubclass(int, Integer), True) 40 self.assertEqual(issubclass(int, (Integer,)), True) 41 self.assertEqual(issubclass(float, Integer), False) 42 self.assertEqual(issubclass(float, (Integer,)), False) 45 self.assertEqual(isinstance(42, Integer), True) 46 self.assertEqual(isinstance(42, (Integer,)), True) 47 self.assertEqual(isinstance(3.14, Integer), False) 48 self.assertEqual(isinstance(3.14, (Integer,)), False [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_int_literal.py | 14 self.assertEqual(0x0, 0X0) 15 self.assertEqual(0x1, 0X1) 16 self.assertEqual(0x123456789abcdef, 0X123456789abcdef) 18 self.assertEqual(0x0, 0) 19 self.assertEqual(0x10, 16) 20 self.assertEqual(0x7fffffff, 2147483647) 21 self.assertEqual(0x7fffffffffffffff, 9223372036854775807) 23 self.assertEqual(-(0x0), 0) 24 self.assertEqual(-(0x10), -16) 25 self.assertEqual(-(0x7fffffff), -2147483647 [all...] |
test_typechecks.py | 35 self.assertEqual(Integer.__subclasscheck__(int), True) 36 self.assertEqual(Integer.__subclasscheck__(float), False) 39 self.assertEqual(issubclass(int, Integer), True) 40 self.assertEqual(issubclass(int, (Integer,)), True) 41 self.assertEqual(issubclass(float, Integer), False) 42 self.assertEqual(issubclass(float, (Integer,)), False) 45 self.assertEqual(isinstance(42, Integer), True) 46 self.assertEqual(isinstance(42, (Integer,)), True) 47 self.assertEqual(isinstance(3.14, Integer), False) 48 self.assertEqual(isinstance(3.14, (Integer,)), False [all...] |
/external/compiler-rt/make/test/ |
test-util.mk | 4 $(call AssertEqual,streq_t0,true) 6 $(call AssertEqual,streq_t1,) 8 $(call AssertEqual,streq_t2,) 10 $(call AssertEqual,streq_t3,true) 12 $(call AssertEqual,streq_t4,) 14 $(call AssertEqual,streq_t5,) 16 $(call AssertEqual,streq_t6,true) 19 $(call AssertEqual,strneq_t7,) 21 $(call AssertEqual,strneq_t8,true) 23 $(call AssertEqual,strneq_t9,true [all...] |
/external/toolchain-utils/crosperf/ |
settings_factory_unittest.py | 19 self.assertEqual(len(res.fields), 6) 20 self.assertEqual(res.GetField('test_name'), '') 21 self.assertEqual(res.GetField('test_args'), '') 22 self.assertEqual(res.GetField('iterations'), 1) 23 self.assertEqual(res.GetField('suite'), '') 32 self.assertEqual(len(res.fields), 9) 33 self.assertEqual(res.GetField('chromeos_image'), '') 34 self.assertEqual(res.GetField('autotest_path'), '') 35 self.assertEqual(res.GetField('chromeos_root'), '') 36 self.assertEqual(res.GetField('remote'), None [all...] |