Home
last modified time | relevance | path

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

12345678910>>...302

/external/libcxx/test/libcxx/containers/associative/
Dtree_remove.pass.cpp74 assert(std::__tree_invariant(root.__left_)); in test1()
76 assert(root.__parent_ == 0); in test1()
77 assert(root.__left_ == &d); in test1()
78 assert(root.__right_ == 0); in test1()
79 assert(root.__is_black_ == false); in test1()
81 assert(d.__parent_ == &root); in test1()
82 assert(d.__left_ == &b); in test1()
83 assert(d.__right_ == &e); in test1()
84 assert(d.__is_black_ == true); in test1()
86 assert(b.__parent_ == &d); in test1()
[all …]
Dtree_balance_after_insert.pass.cpp67 assert(std::__tree_invariant(root.__left_)); in test1()
69 assert(root.__left_ == &c); in test1()
71 assert(c.__parent_ == &root); in test1()
72 assert(c.__left_ == &b); in test1()
73 assert(c.__right_ == &d); in test1()
74 assert(c.__is_black_ == true); in test1()
76 assert(b.__parent_ == &c); in test1()
77 assert(b.__left_ == &a); in test1()
78 assert(b.__right_ == 0); in test1()
79 assert(b.__is_black_ == true); in test1()
[all …]
/external/libcxx/test/std/algorithms/alg.modifying.operations/alg.rotate/
Drotate.pass.cpp30 assert(base(r) == ia); in test()
31 assert(ia[0] == 0); in test()
33 assert(base(r) == ia+sa); in test()
34 assert(ia[0] == 0); in test()
36 assert(base(r) == ia); in test()
37 assert(ia[0] == 0); in test()
42 assert(base(r) == ib+sb); in test()
43 assert(ib[0] == 0); in test()
44 assert(ib[1] == 1); in test()
46 assert(base(r) == ib+1); in test()
[all …]
/external/libcxx/test/std/re/re.alg/re.alg.search/
Decma.pass.cpp39 assert(std::regex_search(s, m, std::regex("a"))); in main()
40 assert(m.size() == 1); in main()
41 assert(!m.empty()); in main()
42 assert(!m.prefix().matched); in main()
43 assert(m.prefix().first == s); in main()
44 assert(m.prefix().second == m[0].first); in main()
45 assert(!m.suffix().matched); in main()
46 assert(m.suffix().first == m[0].second); in main()
47 assert(m.suffix().second == s+1); in main()
48 assert(m.length(0) == 1); in main()
[all …]
Dawk.pass.cpp39 assert(std::regex_search(s, m, std::regex("a", std::regex_constants::awk))); in main()
40 assert(m.size() == 1); in main()
41 assert(!m.empty()); in main()
42 assert(!m.prefix().matched); in main()
43 assert(m.prefix().first == s); in main()
44 assert(m.prefix().second == m[0].first); in main()
45 assert(!m.suffix().matched); in main()
46 assert(m.suffix().first == m[0].second); in main()
47 assert(m.suffix().second == s+1); in main()
48 assert(m.length(0) == 1); in main()
[all …]
Dextended.pass.cpp39 assert(std::regex_search(s, m, std::regex("a", std::regex_constants::extended))); in main()
40 assert(m.size() == 1); in main()
41 assert(!m.empty()); in main()
42 assert(!m.prefix().matched); in main()
43 assert(m.prefix().first == s); in main()
44 assert(m.prefix().second == m[0].first); in main()
45 assert(!m.suffix().matched); in main()
46 assert(m.suffix().first == m[0].second); in main()
47 assert(m.suffix().second == s+1); in main()
48 assert(m.length(0) == 1); in main()
[all …]
Dbasic.pass.cpp38 assert(!std::regex_search("a", m, std::regex())); in main()
39 assert(m.size() == 0); in main()
40 assert(m.empty()); in main()
45 assert(std::regex_search(s, m, std::regex("a", std::regex_constants::basic))); in main()
46 assert(m.size() == 1); in main()
47 assert(!m.empty()); in main()
48 assert(!m.prefix().matched); in main()
49 assert(m.prefix().first == s); in main()
50 assert(m.prefix().second == m[0].first); in main()
51 assert(!m.suffix().matched); in main()
[all …]
/external/libcxx/test/std/re/re.alg/re.alg.match/
Decma.pass.cpp39 assert(std::regex_match(s, m, std::regex("a"))); in main()
40 assert(m.size() == 1); in main()
41 assert(!m.empty()); in main()
42 assert(!m.prefix().matched); in main()
43 assert(m.prefix().first == s); in main()
44 assert(m.prefix().second == m[0].first); in main()
45 assert(!m.suffix().matched); in main()
46 assert(m.suffix().first == m[0].second); in main()
47 assert(m.suffix().second == s+1); in main()
48 assert(m.length(0) == 1); in main()
[all …]
Dawk.pass.cpp33 assert(std::regex_match(s, m, std::regex("a", std::regex_constants::awk))); in main()
34 assert(m.size() == 1); in main()
35 assert(!m.empty()); in main()
36 assert(!m.prefix().matched); in main()
37 assert(m.prefix().first == s); in main()
38 assert(m.prefix().second == m[0].first); in main()
39 assert(!m.suffix().matched); in main()
40 assert(m.suffix().first == m[0].second); in main()
41 assert(m.suffix().second == s+1); in main()
42 assert(m.length(0) == 1); in main()
[all …]
Dbasic.pass.cpp38 assert(!std::regex_match("a", m, std::regex())); in main()
39 assert(m.size() == 0); in main()
40 assert(m.empty()); in main()
45 assert(std::regex_match(s, m, std::regex("a", std::regex_constants::basic))); in main()
46 assert(m.size() == 1); in main()
47 assert(!m.empty()); in main()
48 assert(!m.prefix().matched); in main()
49 assert(m.prefix().first == s); in main()
50 assert(m.prefix().second == m[0].first); in main()
51 assert(!m.suffix().matched); in main()
[all …]
Dextended.pass.cpp39 assert(std::regex_match(s, m, std::regex("a", std::regex_constants::extended))); in main()
40 assert(m.size() == 1); in main()
41 assert(!m.empty()); in main()
42 assert(!m.prefix().matched); in main()
43 assert(m.prefix().first == s); in main()
44 assert(m.prefix().second == m[0].first); in main()
45 assert(!m.suffix().matched); in main()
46 assert(m.suffix().first == m[0].second); in main()
47 assert(m.suffix().second == s+1); in main()
48 assert(m.length(0) == 1); in main()
[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/localization/locale.stdcvt/
Dcodecvt_utf16_out.pass.cpp55 assert(r == std::codecvt_base::ok); in test()
56 assert(wp == &w + 1); in test()
57 assert(np == n + 4); in test()
58 assert(n[0] == char(0xD8)); in test()
59 assert(n[1] == char(0xC0)); in test()
60 assert(n[2] == char(0xDC)); in test()
61 assert(n[3] == char(0x03)); in test()
65 assert(r == std::codecvt_base::ok); in test()
66 assert(wp == &w + 1); in test()
67 assert(np == n + 2); in test()
[all …]
Dcodecvt_utf8_out.pass.cpp52 assert(r == std::codecvt_base::ok); in test()
53 assert(wp == &w + 1); in test()
54 assert(np == n + 3); in test()
55 assert(n[0] == char(0xE1)); in test()
56 assert(n[1] == char(0x80)); in test()
57 assert(n[2] == char(0x85)); in test()
58 assert(n[3] == char(0)); in test()
62 assert(r == std::codecvt_base::ok); in test()
63 assert(wp == &w + 1); in test()
64 assert(np == n + 2); in test()
[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/libxkbcommon/xkbcommon/test/
Dkeysym.c87 assert(test_string("Undo", 0xFF65)); in main()
88 assert(test_string("ThisKeyShouldNotExist", XKB_KEY_NoSymbol)); in main()
89 assert(test_string("XF86_Switch_VT_5", 0x1008FE05)); in main()
90 assert(test_string("VoidSymbol", 0xFFFFFF)); in main()
91 assert(test_string("U4567", 0x1004567)); in main()
92 assert(test_string("0x10203040", 0x10203040)); in main()
93 assert(test_string("a", 0x61)); in main()
94 assert(test_string("A", 0x41)); in main()
95 assert(test_string("ch", 0xfea0)); in main()
96 assert(test_string("Ch", 0xfea1)); 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.cpp85 assert(dynamic_cast<A1*>(a1.getA1()) == a1.getA1()); in test()
86 assert(dynamic_cast<A1*>(a2.getA2()) == 0); in test()
87 assert(dynamic_cast<A1*>(a3.getA1()) == a3.getA1()); in test()
88 assert(dynamic_cast<A1*>(a3.getA2()) == 0); in test()
89 assert(dynamic_cast<A1*>(a3.getA3()) == a3.getA1()); in test()
90 assert(dynamic_cast<A1*>(a4.getA1()) == a4.getA1()); in test()
91 assert(dynamic_cast<A1*>(a4.getA2()) == 0); in test()
92 assert(dynamic_cast<A1*>(a4.getA3()) == a4.getA1()); in test()
93 assert(dynamic_cast<A1*>(a4.getA4()) == a4.getA1()); in test()
94 assert(dynamic_cast<A1*>(a5.getA1()) == a5.getA1()); in test()
[all …]
Ddynamic_cast3.pass.cpp57 assert(dynamic_cast<A1*>(a1.getA1()) == a1.getA1()); in test()
58 assert(dynamic_cast<A1*>(a2.getA2()) == 0); in test()
59 assert(dynamic_cast<A1*>(a3.getA3()) == 0); in test()
60 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
61 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
62 assert(dynamic_cast<A2*>(a3.getA3()) == 0); in test()
63 assert(dynamic_cast<A3*>(a1.getA1()) == 0); in test()
64 assert(dynamic_cast<A3*>(a2.getA2()) == 0); in test()
65 assert(dynamic_cast<A3*>(a3.getA3()) == a3.getA3()); in test()
111 assert(dynamic_cast<A1*>(a1.getA1()) == a1.getA1()); in test()
[all …]
/external/libcxx/test/std/atomics/atomics.types.generic/
Dbool.pass.cpp66 assert(obj == true); in main()
68 assert(obj == false); in main()
70 assert(obj == true); in main()
74 assert(obj == false); in main()
76 assert(obj == true); in main()
77 assert(obj.load() == true); in main()
78 assert(obj.load(std::memory_order_acquire) == true); in main()
79 assert(obj.exchange(false) == true); in main()
80 assert(obj == false); in main()
81 assert(obj.exchange(true, std::memory_order_relaxed) == false); in main()
[all …]
/external/libcxx/test/std/language.support/support.exception/propagation/
Dcurrent_exception.pass.cpp37 assert(p == nullptr); in main()
42 assert(A::constructed == 0); in main()
44 assert(false); in main()
48 assert(A::constructed == 1); in main()
50 assert(A::constructed == 0); in main()
52 assert(A::constructed == 0); in main()
57 assert(A::constructed == 0); in main()
59 assert(false); in main()
64 assert(A::constructed == 1); in main()
65 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/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/thread/thread.mutex/thread.lock.algorithm/
Dtry_lock.pass.cpp81 assert(std::try_lock(l0, l1) == -1); in main()
82 assert(l0.locked()); in main()
83 assert(l1.locked()); in main()
88 assert(std::try_lock(l0, l1) == 1); in main()
89 assert(!l0.locked()); in main()
90 assert(!l1.locked()); in main()
95 assert(std::try_lock(l0, l1) == 0); in main()
96 assert(!l0.locked()); in main()
97 assert(!l1.locked()); in main()
106 assert(false); in main()
[all …]

12345678910>>...302