/external/llvm-project/libcxx/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(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(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(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(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, next(l1.begin()), next(l1.begin())); in main() 26 assert(l1.size() == 3); in main() 27 assert(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, next(l1.begin()), next(l1.begin(), 2)); in main() 38 assert(l1.size() == 3); in main() 39 assert(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/llvm-project/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 …]
|
D | insert_iter_rvalue.pass.cpp | 25 std::list<MoveOnly> l1; in main() local 26 l1.insert(l1.cend(), MoveOnly(1)); in main() 27 assert(l1.size() == 1); in main() 28 assert(l1.front() == MoveOnly(1)); in main() 29 l1.insert(l1.cbegin(), MoveOnly(2)); in main() 30 assert(l1.size() == 2); in main() 31 assert(l1.front() == MoveOnly(2)); in main() 32 assert(l1.back() == MoveOnly(1)); in main() 35 std::list<MoveOnly, min_allocator<MoveOnly>> l1; in main() local 36 l1.insert(l1.cend(), MoveOnly(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/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/llvm-project/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/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/llvm-project/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+5); in main() local 41 l1.erase(l1.begin()); in main() 42 assert(is_contiguous_container_asan_correct(l1)); in main() 43 assert(l1 == std::vector<int>(a1+1, a1+5)); in main() 48 std::vector<int> l1(a1, a1+5); in main() local 49 l1.erase(l1.begin() + 1); in main() 50 assert(is_contiguous_container_asan_correct(l1)); in main() 51 assert(l1 == std::vector<int>(e1, e1+4)); in main() 55 std::vector<int> l1(a1, a1+3); in main() local 56 std::vector<int>::const_iterator i = l1.begin(); in main() [all …]
|
/external/llvm-project/libcxx/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 | 99 L0 l1; in main() local 100 std::lock(l0, l1); in main() 102 assert(l1.locked()); in main() 106 L1 l1; in main() local 107 std::lock(l0, l1); in main() 109 assert(l1.locked()); in main() 113 L0 l1; in main() local 114 std::lock(l0, l1); in main() 116 assert(l1.locked()); in main() 121 L2 l1; in main() local [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/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 …]
|