Searched refs:assert_cmp (Results 1 – 2 of 2) sorted by relevance
/external/jemalloc/test/include/test/ |
D | test.h | 3 #define assert_cmp(t, a, b, cmp, neg_cmp, pri, ...) do { \ macro 20 #define assert_ptr_eq(a, b, ...) assert_cmp(void *, a, b, ==, \ 22 #define assert_ptr_ne(a, b, ...) assert_cmp(void *, a, b, !=, \ 24 #define assert_ptr_null(a, ...) assert_cmp(void *, a, NULL, ==, \ 26 #define assert_ptr_not_null(a, ...) assert_cmp(void *, a, NULL, !=, \ 29 #define assert_c_eq(a, b, ...) assert_cmp(char, a, b, ==, !=, "c", __VA_ARGS__) 30 #define assert_c_ne(a, b, ...) assert_cmp(char, a, b, !=, ==, "c", __VA_ARGS__) 31 #define assert_c_lt(a, b, ...) assert_cmp(char, a, b, <, >=, "c", __VA_ARGS__) 32 #define assert_c_le(a, b, ...) assert_cmp(char, a, b, <=, >, "c", __VA_ARGS__) 33 #define assert_c_ge(a, b, ...) assert_cmp(char, a, b, >=, <, "c", __VA_ARGS__) [all …]
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/ |
D | base_unittest.py | 414 def assert_cmp(self, x, y, result): member in NaturalCompareTest 418 self.assert_cmp('a', 'a', 0) 419 self.assert_cmp('ab', 'a', 1) 420 self.assert_cmp('a', 'ab', -1) 421 self.assert_cmp('', '', 0) 422 self.assert_cmp('', 'ab', -1) 423 self.assert_cmp('1', '2', -1) 424 self.assert_cmp('2', '1', 1) 425 self.assert_cmp('1', '10', -1) 426 self.assert_cmp('2', '10', -1) [all …]
|