/external/cronet/buildtools/third_party/libc++/trunk/test/std/containers/sequences/list/list.ops/ |
D | splice_pos_list_iter.pass.cpp | 24 std::list<int> l1; in main() local 26 l1.splice(l1.end(), l2, l2.begin()); in main() 27 assert(l1.size() == 1); in main() 28 assert(std::distance(l1.begin(), l1.end()) == 1); in main() 31 std::list<int>::const_iterator i = l1.begin(); in main() 35 std::list<int> l1; in main() local 37 l1.splice(l1.end(), l2, l2.begin()); in main() 38 assert(l1.size() == 1); in main() 39 assert(std::distance(l1.begin(), l1.end()) == 1); in main() 42 std::list<int>::const_iterator i = l1.begin(); in main() [all …]
|
D | splice_pos_list.pass.cpp | 24 std::list<int> l1; in main() local 26 l1.splice(l1.end(), l2); in main() 27 assert(l1.size() == 0); in main() 28 assert(std::distance(l1.begin(), l1.end()) == 0); in main() 33 std::list<int> l1; in main() local 35 l1.splice(l1.end(), l2); in main() 36 assert(l1.size() == 1); in main() 37 assert(std::distance(l1.begin(), l1.end()) == 1); in main() 40 std::list<int>::const_iterator i = l1.begin(); in main() 44 std::list<int> l1; in main() local [all …]
|
D | splice_pos_list_iter_iter.pass.cpp | 24 std::list<int> l1(a1, a1+3); in main() local 25 l1.splice(l1.begin(), l1, std::next(l1.begin()), std::next(l1.begin())); in main() 26 assert(l1.size() == 3); in main() 27 assert(std::distance(l1.begin(), l1.end()) == 3); in main() 28 std::list<int>::const_iterator i = l1.begin(); in main() 36 std::list<int> l1(a1, a1+3); in main() local 37 l1.splice(l1.begin(), l1, std::next(l1.begin()), std::next(l1.begin(), 2)); in main() 38 assert(l1.size() == 3); in main() 39 assert(std::distance(l1.begin(), l1.end()) == 3); in main() 40 std::list<int>::const_iterator i = l1.begin(); in main() [all …]
|
/external/libcxx/test/std/containers/sequences/list/list.ops/ |
D | splice_pos_list_iter.pass.cpp | 25 std::list<int> l1; in main() local 27 l1.splice(l1.end(), l2, l2.begin()); in main() 28 assert(l1.size() == 1); in main() 29 assert(distance(l1.begin(), l1.end()) == 1); in main() 32 std::list<int>::const_iterator i = l1.begin(); in main() 36 std::list<int> l1; in main() local 38 l1.splice(l1.end(), l2, l2.begin()); in main() 39 assert(l1.size() == 1); in main() 40 assert(distance(l1.begin(), l1.end()) == 1); in main() 43 std::list<int>::const_iterator i = l1.begin(); in main() [all …]
|
D | splice_pos_list.pass.cpp | 25 std::list<int> l1; in main() local 27 l1.splice(l1.end(), l2); in main() 28 assert(l1.size() == 0); in main() 29 assert(distance(l1.begin(), l1.end()) == 0); in main() 34 std::list<int> l1; in main() local 36 l1.splice(l1.end(), l2); in main() 37 assert(l1.size() == 1); in main() 38 assert(distance(l1.begin(), l1.end()) == 1); in main() 41 std::list<int>::const_iterator i = l1.begin(); in main() 45 std::list<int> l1; in main() local [all …]
|
D | splice_pos_list_iter_iter.pass.cpp | 25 std::list<int> l1(a1, a1+3); in main() local 26 l1.splice(l1.begin(), l1, next(l1.begin()), next(l1.begin())); in main() 27 assert(l1.size() == 3); in main() 28 assert(distance(l1.begin(), l1.end()) == 3); in main() 29 std::list<int>::const_iterator i = l1.begin(); in main() 37 std::list<int> l1(a1, a1+3); in main() local 38 l1.splice(l1.begin(), l1, next(l1.begin()), next(l1.begin(), 2)); in main() 39 assert(l1.size() == 3); in main() 40 assert(distance(l1.begin(), l1.end()) == 3); in main() 41 std::list<int>::const_iterator i = l1.begin(); in main() [all …]
|
/external/libcxx/test/std/containers/sequences/vector.bool/ |
D | erase_iter_iter.pass.cpp | 24 std::vector<bool> l1(a1, a1+3); in main() local 25 std::vector<bool>::iterator i = l1.erase(l1.cbegin(), l1.cbegin()); in main() 26 assert(l1.size() == 3); in main() 27 assert(distance(l1.cbegin(), l1.cend()) == 3); in main() 28 assert(i == l1.begin()); in main() 31 std::vector<bool> l1(a1, a1+3); in main() local 32 std::vector<bool>::iterator i = l1.erase(l1.cbegin(), next(l1.cbegin())); in main() 33 assert(l1.size() == 2); in main() 34 assert(distance(l1.cbegin(), l1.cend()) == 2); in main() 35 assert(i == l1.begin()); in main() [all …]
|
D | erase_iter.pass.cpp | 24 std::vector<bool> l1(a1, a1+3); in main() local 25 std::vector<bool>::const_iterator i = l1.begin(); in main() 27 std::vector<bool>::iterator j = l1.erase(i); in main() 28 assert(l1.size() == 2); in main() 29 assert(distance(l1.begin(), l1.end()) == 2); in main() 31 assert(*l1.begin() == 1); in main() 32 assert(*next(l1.begin()) == true); in main() 33 j = l1.erase(j); in main() 34 assert(j == l1.end()); in main() 35 assert(l1.size() == 1); in main() [all …]
|
/external/libcxx/test/std/containers/sequences/list/list.modifiers/ |
D | erase_iter_iter.pass.cpp | 23 std::list<int> l1(a1, a1+3); in main() local 24 std::list<int>::iterator i = l1.erase(l1.cbegin(), l1.cbegin()); in main() 25 assert(l1.size() == 3); in main() 26 assert(distance(l1.cbegin(), l1.cend()) == 3); in main() 27 assert(i == l1.begin()); in main() 30 std::list<int> l1(a1, a1+3); in main() local 31 std::list<int>::iterator i = l1.erase(l1.cbegin(), next(l1.cbegin())); in main() 32 assert(l1.size() == 2); in main() 33 assert(distance(l1.cbegin(), l1.cend()) == 2); in main() 34 assert(i == l1.begin()); in main() [all …]
|
D | erase_iter.pass.cpp | 23 std::list<int> l1(a1, a1+3); in main() local 24 std::list<int>::const_iterator i = l1.begin(); in main() 26 std::list<int>::iterator j = l1.erase(i); in main() 27 assert(l1.size() == 2); in main() 28 assert(distance(l1.begin(), l1.end()) == 2); in main() 30 assert(*l1.begin() == 1); in main() 31 assert(*next(l1.begin()) == 3); in main() 32 j = l1.erase(j); in main() 33 assert(j == l1.end()); in main() 34 assert(l1.size() == 1); in main() [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/containers/sequences/vector.bool/ |
D | erase_iter_iter.pass.cpp | 25 std::vector<bool> l1(a1, a1+3); in tests() local 26 std::vector<bool>::iterator i = l1.erase(l1.cbegin(), l1.cbegin()); in tests() 27 assert(l1.size() == 3); in tests() 28 assert(std::distance(l1.cbegin(), l1.cend()) == 3); in tests() 29 assert(i == l1.begin()); in tests() 32 std::vector<bool> l1(a1, a1+3); in tests() local 33 std::vector<bool>::iterator i = l1.erase(l1.cbegin(), std::next(l1.cbegin())); in tests() 34 assert(l1.size() == 2); in tests() 35 assert(std::distance(l1.cbegin(), l1.cend()) == 2); in tests() 36 assert(i == l1.begin()); in tests() [all …]
|
D | erase_iter.pass.cpp | 25 std::vector<bool> l1(a1, a1+3); in tests() local 26 std::vector<bool>::const_iterator i = l1.begin(); in tests() 28 std::vector<bool>::iterator j = l1.erase(i); in tests() 29 assert(l1.size() == 2); in tests() 30 assert(std::distance(l1.begin(), l1.end()) == 2); in tests() 32 assert(*l1.begin() == 1); in tests() 33 assert(*std::next(l1.begin()) == true); in tests() 34 j = l1.erase(j); in tests() 35 assert(j == l1.end()); in tests() 36 assert(l1.size() == 1); in tests() [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/containers/sequences/list/list.modifiers/ |
D | erase_iter_iter.pass.cpp | 23 std::list<int> l1(a1, a1+3); in main() local 24 std::list<int>::iterator i = l1.erase(l1.cbegin(), l1.cbegin()); in main() 25 assert(l1.size() == 3); in main() 26 assert(std::distance(l1.cbegin(), l1.cend()) == 3); in main() 27 assert(i == l1.begin()); in main() 30 std::list<int> l1(a1, a1+3); in main() local 31 std::list<int>::iterator i = l1.erase(l1.cbegin(), std::next(l1.cbegin())); in main() 32 assert(l1.size() == 2); in main() 33 assert(std::distance(l1.cbegin(), l1.cend()) == 2); in main() 34 assert(i == l1.begin()); in main() [all …]
|
D | erase_iter.pass.cpp | 23 std::list<int> l1(a1, a1+3); in main() local 24 std::list<int>::const_iterator i = l1.begin(); in main() 26 std::list<int>::iterator j = l1.erase(i); in main() 27 assert(l1.size() == 2); in main() 28 assert(std::distance(l1.begin(), l1.end()) == 2); in main() 30 assert(*l1.begin() == 1); in main() 31 assert(*std::next(l1.begin()) == 3); in main() 32 j = l1.erase(j); in main() 33 assert(j == l1.end()); in main() 34 assert(l1.size() == 1); in main() [all …]
|
/external/libcxx/test/std/containers/sequences/vector/vector.modifiers/ |
D | erase_iter_iter.pass.cpp | 40 std::vector<int> l1(a1, a1+3); in main() local 41 assert(is_contiguous_container_asan_correct(l1)); in main() 42 std::vector<int>::iterator i = l1.erase(l1.cbegin(), l1.cbegin()); in main() 43 assert(l1.size() == 3); in main() 44 assert(distance(l1.cbegin(), l1.cend()) == 3); in main() 45 assert(i == l1.begin()); in main() 46 assert(is_contiguous_container_asan_correct(l1)); in main() 49 std::vector<int> l1(a1, a1+3); in main() local 50 assert(is_contiguous_container_asan_correct(l1)); in main() 51 std::vector<int>::iterator i = l1.erase(l1.cbegin(), next(l1.cbegin())); in main() [all …]
|
D | erase_iter.pass.cpp | 40 std::vector<int> l1(a1, a1+3); in main() local 41 std::vector<int>::const_iterator i = l1.begin(); in main() 42 assert(is_contiguous_container_asan_correct(l1)); in main() 44 std::vector<int>::iterator j = l1.erase(i); in main() 45 assert(l1.size() == 2); in main() 46 assert(distance(l1.begin(), l1.end()) == 2); in main() 48 assert(*l1.begin() == 1); in main() 49 assert(*next(l1.begin()) == 3); in main() 50 assert(is_contiguous_container_asan_correct(l1)); in main() 51 j = l1.erase(j); in main() [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/containers/sequences/vector/vector.modifiers/ |
D | erase_iter_iter.pass.cpp | 40 std::vector<int> l1(a1, a1+3); in tests() local 41 assert(is_contiguous_container_asan_correct(l1)); in tests() 42 std::vector<int>::iterator i = l1.erase(l1.cbegin(), l1.cbegin()); in tests() 43 assert(l1.size() == 3); in tests() 44 assert(std::distance(l1.cbegin(), l1.cend()) == 3); in tests() 45 assert(i == l1.begin()); in tests() 46 assert(is_contiguous_container_asan_correct(l1)); in tests() 49 std::vector<int> l1(a1, a1+3); in tests() local 50 assert(is_contiguous_container_asan_correct(l1)); in tests() 51 std::vector<int>::iterator i = l1.erase(l1.cbegin(), std::next(l1.cbegin())); in tests() [all …]
|
D | erase_iter.pass.cpp | 40 std::vector<int> l1(a1, a1+5); in tests() local 41 l1.erase(l1.begin()); in tests() 42 assert(is_contiguous_container_asan_correct(l1)); in tests() 43 assert(l1 == std::vector<int>(a1+1, a1+5)); in tests() 48 std::vector<int> l1(a1, a1+5); in tests() local 49 l1.erase(l1.begin() + 1); in tests() 50 assert(is_contiguous_container_asan_correct(l1)); in tests() 51 assert(l1 == std::vector<int>(e1, e1+4)); in tests() 55 std::vector<int> l1(a1, a1+3); in tests() local 56 std::vector<int>::const_iterator i = l1.begin(); in tests() [all …]
|
/external/libcxx/test/std/thread/thread.mutex/thread.lock.algorithm/ |
D | try_lock.pass.cpp | 80 L0 l1; in main() local 81 assert(std::try_lock(l0, l1) == -1); in main() 83 assert(l1.locked()); in main() 87 L1 l1; in main() local 88 assert(std::try_lock(l0, l1) == 1); in main() 90 assert(!l1.locked()); in main() 94 L0 l1; in main() local 95 assert(std::try_lock(l0, l1) == 0); in main() 97 assert(!l1.locked()); in main() 102 L2 l1; in main() local [all …]
|
D | lock.pass.cpp | 100 L0 l1; in main() local 101 std::lock(l0, l1); in main() 103 assert(l1.locked()); in main() 107 L1 l1; in main() local 108 std::lock(l0, l1); in main() 110 assert(l1.locked()); in main() 114 L0 l1; in main() local 115 std::lock(l0, l1); in main() 117 assert(l1.locked()); in main() 122 L2 l1; in main() local [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/std/thread/thread.mutex/thread.lock.algorithm/ |
D | try_lock.pass.cpp | 79 L0 l1; in main() local 80 assert(std::try_lock(l0, l1) == -1); in main() 82 assert(l1.locked()); in main() 86 L1 l1; in main() local 87 assert(std::try_lock(l0, l1) == 1); in main() 89 assert(!l1.locked()); in main() 93 L0 l1; in main() local 94 assert(std::try_lock(l0, l1) == 0); in main() 96 assert(!l1.locked()); in main() 101 L2 l1; in main() local [all …]
|
D | lock.pass.cpp | 103 L0 l1; in main() local 104 std::lock(l0, l1); in main() 106 assert(l1.locked()); in main() 110 L1 l1; in main() local 111 std::lock(l0, l1); in main() 113 assert(l1.locked()); in main() 117 L0 l1; in main() local 118 std::lock(l0, l1); in main() 120 assert(l1.locked()); in main() 125 L2 l1; in main() local [all …]
|
/external/python/cpython3/Lib/lib2to3/tests/ |
D | test_pytree.py | 35 l1 = pytree.Leaf(100, "foo") 36 self.assertEqual(l1.type, 100) 37 self.assertEqual(l1.value, "foo") 40 l1 = pytree.Leaf(100, "foo") 41 self.assertEqual(repr(l1), "Leaf(100, 'foo')") 44 l1 = pytree.Leaf(100, "foo") 45 self.assertEqual(str(l1), "foo") 52 l1 = pytree.Leaf(2, 5) 53 l1.prefix = "foo_" 54 self.assertEqual(str(l1), "foo_5") [all …]
|
/external/python/cpython2/Lib/lib2to3/tests/ |
D | test_pytree.py | 57 l1 = pytree.Leaf(100, "foo") 58 self.assertEqual(l1.type, 100) 59 self.assertEqual(l1.value, "foo") 62 l1 = pytree.Leaf(100, "foo") 63 self.assertEqual(repr(l1), "Leaf(100, 'foo')") 66 l1 = pytree.Leaf(100, "foo") 67 self.assertEqual(str(l1), "foo") 74 l1 = pytree.Leaf(2, 5) 75 l1.prefix = "foo_" 76 self.assertEqual(str(l1), "foo_5") [all …]
|
/external/cronet/buildtools/third_party/libc++/trunk/test/libcxx/strings/basic.string/string.modifiers/ |
D | debug.erase.iter_iter.pass.cpp | 26 std::string l1("123"); in main() local 29 l1.erase(l2.cbegin(), l1.cbegin() + 1), in main() 34 S l1("123"); in main() local 36 TEST_LIBCPP_ASSERT_FAILURE(l1.erase(l2.cbegin(), l1.cbegin() + 1), in main() 44 std::string l1("123"); in main() local 46 …TEST_LIBCPP_ASSERT_FAILURE(l1.erase(l1.cbegin(), l2.cbegin() + 1), "Attempted to compare incompara… in main() 50 S l1("123"); in main() local 52 …TEST_LIBCPP_ASSERT_FAILURE(l1.erase(l1.cbegin(), l2.cbegin() + 1), "Attempted to compare incompara… in main() 59 std::string l1("123"); in main() local 62 l1.erase(l2.cbegin(), l2.cbegin() + 1), in main() [all …]
|