Home
last modified time | relevance | path

Searched refs:assert (Results 1 – 25 of 8423) sorted by relevance

12345678910>>...337

/external/libcxx/test/std/containers/associative/
Dtree_remove.pass.cpp71 assert(std::__tree_invariant(root.__left_)); in test1()
73 assert(root.__parent_ == 0); in test1()
74 assert(root.__left_ == &d); in test1()
75 assert(root.__right_ == 0); in test1()
76 assert(root.__is_black_ == false); in test1()
78 assert(d.__parent_ == &root); in test1()
79 assert(d.__left_ == &b); in test1()
80 assert(d.__right_ == &e); in test1()
81 assert(d.__is_black_ == true); in test1()
83 assert(b.__parent_ == &d); in test1()
[all …]
Dtree_balance_after_insert.pass.cpp64 assert(std::__tree_invariant(root.__left_)); in test1()
66 assert(root.__left_ == &c); in test1()
68 assert(c.__parent_ == &root); in test1()
69 assert(c.__left_ == &b); in test1()
70 assert(c.__right_ == &d); in test1()
71 assert(c.__is_black_ == true); in test1()
73 assert(b.__parent_ == &c); in test1()
74 assert(b.__left_ == &a); in test1()
75 assert(b.__right_ == 0); in test1()
76 assert(b.__is_black_ == true); in test1()
[all …]
/external/libcxx/test/std/localization/locale.stdcvt/
Dcodecvt_utf8_out.pass.cpp39 assert(r == std::codecvt_base::ok); in main()
40 assert(wp == &w+1); in main()
41 assert(np == n+4); in main()
42 assert(n[0] == char(0xF1)); in main()
43 assert(n[1] == char(0x80)); in main()
44 assert(n[2] == char(0x80)); in main()
45 assert(n[3] == char(0x83)); in main()
49 assert(r == std::codecvt_base::ok); in main()
50 assert(wp == &w+1); in main()
51 assert(np == n+3); in main()
[all …]
Dcodecvt_utf16_out.pass.cpp39 assert(r == std::codecvt_base::ok); in main()
40 assert(wp == &w+1); in main()
41 assert(np == n+4); in main()
42 assert(n[0] == char(0xD8)); in main()
43 assert(n[1] == char(0xC0)); in main()
44 assert(n[2] == char(0xDC)); in main()
45 assert(n[3] == char(0x03)); in main()
49 assert(r == std::codecvt_base::ok); in main()
50 assert(wp == &w+1); in main()
51 assert(np == n+2); in main()
[all …]
Dcodecvt_utf8_utf16_out.pass.cpp39 assert(r == std::codecvt_base::ok); in main()
40 assert(wp == w+2); in main()
41 assert(np == n+4); in main()
42 assert(n[0] == char(0xF1)); in main()
43 assert(n[1] == char(0x80)); in main()
44 assert(n[2] == char(0x80)); in main()
45 assert(n[3] == char(0x83)); in main()
49 assert(r == std::codecvt_base::ok); in main()
50 assert(wp == w+1); in main()
51 assert(np == n+3); in main()
[all …]
/external/libcxx/test/std/re/re.alg/re.alg.match/
Decma.pass.cpp35 assert(std::regex_match(s, m, std::regex("a"))); in main()
36 assert(m.size() == 1); in main()
37 assert(!m.empty()); in main()
38 assert(!m.prefix().matched); in main()
39 assert(m.prefix().first == s); in main()
40 assert(m.prefix().second == m[0].first); in main()
41 assert(!m.suffix().matched); in main()
42 assert(m.suffix().first == m[0].second); in main()
43 assert(m.suffix().second == s+1); in main()
44 assert(m.length(0) == 1); in main()
[all …]
Dextended.pass.cpp35 assert(std::regex_match(s, m, std::regex("a", std::regex_constants::extended))); in main()
36 assert(m.size() == 1); in main()
37 assert(!m.empty()); in main()
38 assert(!m.prefix().matched); in main()
39 assert(m.prefix().first == s); in main()
40 assert(m.prefix().second == m[0].first); in main()
41 assert(!m.suffix().matched); in main()
42 assert(m.suffix().first == m[0].second); in main()
43 assert(m.suffix().second == s+1); in main()
44 assert(m.length(0) == 1); in main()
[all …]
Dbasic.pass.cpp34 assert(!std::regex_match("a", m, std::regex())); in main()
35 assert(m.size() == 0); in main()
36 assert(m.empty()); in main()
41 assert(std::regex_match(s, m, std::regex("a", std::regex_constants::basic))); in main()
42 assert(m.size() == 1); in main()
43 assert(!m.empty()); in main()
44 assert(!m.prefix().matched); in main()
45 assert(m.prefix().first == s); in main()
46 assert(m.prefix().second == m[0].first); in main()
47 assert(!m.suffix().matched); in main()
[all …]
/external/libcxx/test/std/re/re.alg/re.alg.search/
Dbasic.pass.cpp34 assert(!std::regex_search("a", m, std::regex())); in main()
35 assert(m.size() == 0); in main()
36 assert(m.empty()); in main()
41 assert(std::regex_search(s, m, std::regex("a", std::regex_constants::basic))); in main()
42 assert(m.size() == 1); in main()
43 assert(!m.empty()); in main()
44 assert(!m.prefix().matched); in main()
45 assert(m.prefix().first == s); in main()
46 assert(m.prefix().second == m[0].first); in main()
47 assert(!m.suffix().matched); in main()
[all …]
Decma.pass.cpp35 assert(std::regex_search(s, m, std::regex("a"))); in main()
36 assert(m.size() == 1); in main()
37 assert(!m.empty()); in main()
38 assert(!m.prefix().matched); in main()
39 assert(m.prefix().first == s); in main()
40 assert(m.prefix().second == m[0].first); in main()
41 assert(!m.suffix().matched); in main()
42 assert(m.suffix().first == m[0].second); in main()
43 assert(m.suffix().second == s+1); in main()
44 assert(m.length(0) == 1); in main()
[all …]
Dawk.pass.cpp35 assert(std::regex_search(s, m, std::regex("a", std::regex_constants::awk))); in main()
36 assert(m.size() == 1); in main()
37 assert(!m.empty()); in main()
38 assert(!m.prefix().matched); in main()
39 assert(m.prefix().first == s); in main()
40 assert(m.prefix().second == m[0].first); in main()
41 assert(!m.suffix().matched); in main()
42 assert(m.suffix().first == m[0].second); in main()
43 assert(m.suffix().second == s+1); in main()
44 assert(m.length(0) == 1); in main()
[all …]
Dextended.pass.cpp35 assert(std::regex_search(s, m, std::regex("a", std::regex_constants::extended))); in main()
36 assert(m.size() == 1); in main()
37 assert(!m.empty()); in main()
38 assert(!m.prefix().matched); in main()
39 assert(m.prefix().first == s); in main()
40 assert(m.prefix().second == m[0].first); in main()
41 assert(!m.suffix().matched); in main()
42 assert(m.suffix().first == m[0].second); in main()
43 assert(m.suffix().second == s+1); in main()
44 assert(m.length(0) == 1); in main()
[all …]
/external/libcxx/test/std/algorithms/alg.modifying.operations/alg.rotate/
Drotate.pass.cpp31 assert(base(r) == ia); in test()
32 assert(ia[0] == 0); in test()
34 assert(base(r) == ia+sa); in test()
35 assert(ia[0] == 0); in test()
37 assert(base(r) == ia); in test()
38 assert(ia[0] == 0); in test()
43 assert(base(r) == ib+sb); in test()
44 assert(ib[0] == 0); in test()
45 assert(ib[1] == 1); in test()
47 assert(base(r) == ib+1); in test()
[all …]
/external/libcxx/test/std/localization/locale.categories/category.ctype/locale.ctype.byname/
Dis_many.pass.cpp37 assert(h == in.data() + in.size()); in main()
40 assert(!(m[0] & F::space)); in main()
41 assert( (m[0] & F::print)); in main()
42 assert(!(m[0] & F::cntrl)); in main()
43 assert( (m[0] & F::upper)); in main()
44 assert(!(m[0] & F::lower)); in main()
45 assert( (m[0] & F::alpha)); in main()
46 assert(!(m[0] & F::digit)); in main()
47 assert(!(m[0] & F::punct)); in main()
48 assert(!(m[0] & F::xdigit)); in main()
[all …]
/external/libcxx/test/std/containers/associative/map/map.modifiers/
Derase_key.pass.cpp39 assert(m.size() == 8); in main()
41 assert(s == 0); in main()
42 assert(m.size() == 8); in main()
43 assert(m.begin()->first == 1); in main()
44 assert(m.begin()->second == 1.5); in main()
45 assert(next(m.begin())->first == 2); in main()
46 assert(next(m.begin())->second == 2.5); in main()
47 assert(next(m.begin(), 2)->first == 3); in main()
48 assert(next(m.begin(), 2)->second == 3.5); in main()
49 assert(next(m.begin(), 3)->first == 4); in main()
[all …]
Derase_iter.pass.cpp47 assert(m.size() == 8); in main()
49 assert(m.size() == 7); in main()
50 assert(i == next(m.begin(), 3)); in main()
51 assert(m.begin()->first == 1); in main()
52 assert(m.begin()->second == 1.5); in main()
53 assert(next(m.begin())->first == 2); in main()
54 assert(next(m.begin())->second == 2.5); in main()
55 assert(next(m.begin(), 2)->first == 3); in main()
56 assert(next(m.begin(), 2)->second == 3.5); in main()
57 assert(next(m.begin(), 3)->first == 5); in main()
[all …]
/external/libcxx/test/std/atomics/atomics.types.generic/
Dbool.pass.cpp64 assert(obj == true); in main()
66 assert(obj == false); in main()
68 assert(obj == true); in main()
72 assert(obj == false); in main()
74 assert(obj == true); in main()
75 assert(obj.load() == true); in main()
76 assert(obj.load(std::memory_order_acquire) == true); in main()
77 assert(obj.exchange(false) == true); in main()
78 assert(obj == false); in main()
79 assert(obj.exchange(true, std::memory_order_relaxed) == false); in main()
[all …]
/external/libcxx/test/std/language.support/support.exception/propagation/
Dcurrent_exception.pass.cpp32 assert(p == nullptr); in main()
37 assert(A::constructed == 0); in main()
39 assert(false); in main()
43 assert(A::constructed == 1); in main()
45 assert(A::constructed == 0); in main()
47 assert(A::constructed == 0); in main()
52 assert(A::constructed == 0); in main()
54 assert(false); in main()
59 assert(A::constructed == 1); in main()
60 assert(p != nullptr); in main()
[all …]
/external/libcxx/test/std/containers/associative/set/
Derase_key.pass.cpp39 assert(m.size() == 8); in main()
41 assert(m.size() == 8); in main()
42 assert(i == 0); in main()
43 assert(*next(m.begin(), 0) == 1); in main()
44 assert(*next(m.begin(), 1) == 2); in main()
45 assert(*next(m.begin(), 2) == 3); in main()
46 assert(*next(m.begin(), 3) == 4); in main()
47 assert(*next(m.begin(), 4) == 5); in main()
48 assert(*next(m.begin(), 5) == 6); in main()
49 assert(*next(m.begin(), 6) == 7); in main()
[all …]
/external/libcxxabi/test/
Ddynamic_cast14.pass.cpp230 assert(dynamic_cast<A3*>(a3.getA1_3()) == a3.getA3()); in test()
231 assert(dynamic_cast<A3*>(a3.getA2()) == a3.getA3()); in test()
233 assert(dynamic_cast<A3*>(a4.getA1_4()) == 0); in test()
234 assert(dynamic_cast<A3*>(a4.getA2()) == 0); in test()
235 assert(dynamic_cast<A4*>(a4.getA1_4()) == a4.getA4()); in test()
236 assert(dynamic_cast<A4*>(a4.getA2()) == a4.getA4()); in test()
238 assert(dynamic_cast<A3*>(a5.getA1_3()) == a5.getA3()); in test()
239 assert(dynamic_cast<A3*>(a5.getA2()) == a5.getA3()); in test()
241 assert(dynamic_cast<A4*>(a5.getA1_3()) == a5.getA4()); in test()
242 assert(dynamic_cast<A4*>(a5.getA1_4()) == a5.getA4()); in test()
[all …]
Ddynamic_cast5.pass.cpp79 assert(dynamic_cast<A1*>(a1.getA1()) == a1.getA1()); in test()
80 assert(dynamic_cast<A1*>(a2.getA2()) == 0); in test()
81 assert(dynamic_cast<A1*>(a3.getA1()) == a3.getA1()); in test()
82 assert(dynamic_cast<A1*>(a3.getA2()) == 0); in test()
83 assert(dynamic_cast<A1*>(a3.getA3()) == a3.getA1()); in test()
84 assert(dynamic_cast<A1*>(a4.getA1()) == a4.getA1()); in test()
85 assert(dynamic_cast<A1*>(a4.getA2()) == 0); in test()
86 assert(dynamic_cast<A1*>(a4.getA3()) == a4.getA1()); in test()
87 assert(dynamic_cast<A1*>(a4.getA4()) == a4.getA1()); in test()
88 assert(dynamic_cast<A1*>(a5.getA1()) == a5.getA1()); in test()
[all …]
/external/libcxx/test/std/thread/thread.mutex/thread.lock.algorithm/
Dtry_lock.pass.cpp79 assert(std::try_lock(l0, l1) == -1); in main()
80 assert(l0.locked()); in main()
81 assert(l1.locked()); in main()
86 assert(std::try_lock(l0, l1) == 1); in main()
87 assert(!l0.locked()); in main()
88 assert(!l1.locked()); in main()
93 assert(std::try_lock(l0, l1) == 0); in main()
94 assert(!l0.locked()); in main()
95 assert(!l1.locked()); in main()
103 assert(false); in main()
[all …]
/external/libcxx/test/std/containers/associative/multimap/multimap.modifiers/
Derase_iter.pass.cpp48 assert(m.size() == 9); in main()
50 assert(m.size() == 8); in main()
51 assert(i == next(m.begin(), 3)); in main()
52 assert(m.begin()->first == 1); in main()
53 assert(m.begin()->second == 1); in main()
54 assert(next(m.begin())->first == 1); in main()
55 assert(next(m.begin())->second == 1.5); in main()
56 assert(next(m.begin(), 2)->first == 1); in main()
57 assert(next(m.begin(), 2)->second == 2); in main()
58 assert(next(m.begin(), 3)->first == 2); in main()
[all …]
/external/libcxx/test/std/experimental/optional/optional.object/optional.object.swap/
Dswap.pass.cpp75 assert(static_cast<bool>(opt1) == false); in main()
76 assert(static_cast<bool>(opt2) == false); in main()
78 assert(static_cast<bool>(opt1) == false); in main()
79 assert(static_cast<bool>(opt2) == false); in main()
85 assert(static_cast<bool>(opt1) == true); in main()
86 assert(*opt1 == 1); in main()
87 assert(static_cast<bool>(opt2) == false); in main()
89 assert(static_cast<bool>(opt1) == false); in main()
90 assert(static_cast<bool>(opt2) == true); in main()
91 assert(*opt2 == 1); in main()
[all …]
/external/libcxx/test/std/experimental/optional/optional.specalg/
Dswap.pass.cpp74 assert(static_cast<bool>(opt1) == false); in main()
75 assert(static_cast<bool>(opt2) == false); in main()
77 assert(static_cast<bool>(opt1) == false); in main()
78 assert(static_cast<bool>(opt2) == false); in main()
84 assert(static_cast<bool>(opt1) == true); in main()
85 assert(*opt1 == 1); in main()
86 assert(static_cast<bool>(opt2) == false); in main()
88 assert(static_cast<bool>(opt1) == false); in main()
89 assert(static_cast<bool>(opt2) == true); in main()
90 assert(*opt2 == 1); in main()
[all …]

12345678910>>...337