Home
last modified time | relevance | path

Searched full:assert (Results 1 – 25 of 18213) sorted by relevance

12345678910>>...729

/external/llvm-project/libcxx/test/libcxx/containers/associative/
Dtree_remove.pass.cpp75 assert(std::__tree_invariant(root.__left_)); in test1()
77 assert(root.__parent_ == 0); in test1()
78 assert(root.__left_ == &d); in test1()
79 assert(root.__right_ == 0); in test1()
80 assert(root.__is_black_ == false); in test1()
82 assert(d.__parent_ == &root); in test1()
83 assert(d.__left_ == &b); in test1()
84 assert(d.__right_ == &e); in test1()
85 assert(d.__is_black_ == true); in test1()
87 assert(b.__parent_ == &d); in test1()
[all …]
Dtree_balance_after_insert.pass.cpp68 assert(std::__tree_invariant(root.__left_)); in test1()
70 assert(root.__left_ == &c); in test1()
72 assert(c.__parent_ == &root); in test1()
73 assert(c.__left_ == &b); in test1()
74 assert(c.__right_ == &d); in test1()
75 assert(c.__is_black_ == true); in test1()
77 assert(b.__parent_ == &c); in test1()
78 assert(b.__left_ == &a); in test1()
79 assert(b.__right_ == 0); in test1()
80 assert(b.__is_black_ == true); in test1()
[all …]
/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/scapy/test/
Dpptp.uts12 assert GRE in pkt
14 assert gre.chksum_present == 0
15 assert gre.routing_present == 0
16 assert gre.key_present == 0
17 assert gre.seqnum_present == 0
18 assert gre.strict_route_source == 0
19 assert gre.recursion_control == 0
20 assert gre.flags == 0
21 assert gre.version == 0
22 assert gre.proto == 0x800
[all …]
/external/llvm-project/libcxx/test/std/re/re.alg/re.alg.search/
Decma.pass.cpp38 assert(std::regex_search(s, m, std::regex("a"))); in main()
39 assert(m.size() == 1); in main()
40 assert(!m.empty()); in main()
41 assert(!m.prefix().matched); in main()
42 assert(m.prefix().first == s); in main()
43 assert(m.prefix().second == m[0].first); in main()
44 assert(!m.suffix().matched); in main()
45 assert(m.suffix().first == m[0].second); in main()
46 assert(m.suffix().second == s+1); in main()
47 assert(m.length(0) == 1); in main()
[all …]
Dbasic.pass.cpp37 assert(!std::regex_search("a", m, std::regex())); in main()
38 assert(m.size() == 0); in main()
39 assert(m.empty()); in main()
44 assert(std::regex_search(s, m, std::regex("a", std::regex_constants::basic))); in main()
45 assert(m.size() == 1); in main()
46 assert(!m.empty()); in main()
47 assert(!m.prefix().matched); in main()
48 assert(m.prefix().first == s); in main()
49 assert(m.prefix().second == m[0].first); in main()
50 assert(!m.suffix().matched); in main()
[all …]
Dextended.pass.cpp38 assert(std::regex_search(s, m, std::regex("a", std::regex_constants::extended))); in main()
39 assert(m.size() == 1); in main()
40 assert(!m.empty()); in main()
41 assert(!m.prefix().matched); in main()
42 assert(m.prefix().first == s); in main()
43 assert(m.prefix().second == m[0].first); in main()
44 assert(!m.suffix().matched); in main()
45 assert(m.suffix().first == m[0].second); in main()
46 assert(m.suffix().second == s+1); in main()
47 assert(m.length(0) == 1); in main()
[all …]
Dawk.pass.cpp38 assert(std::regex_search(s, m, std::regex("a", std::regex_constants::awk))); in main()
39 assert(m.size() == 1); in main()
40 assert(!m.empty()); in main()
41 assert(!m.prefix().matched); in main()
42 assert(m.prefix().first == s); in main()
43 assert(m.prefix().second == m[0].first); in main()
44 assert(!m.suffix().matched); in main()
45 assert(m.suffix().first == m[0].second); in main()
46 assert(m.suffix().second == s+1); in main()
47 assert(m.length(0) == 1); in main()
[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 …]
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 …]
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 …]
/external/starlark-go/starlark/testdata/
Dfloat.star4 load("assert.star", "assert")
11 assert.eq(type(0.0), "float")
14 assert.true(123.0)
15 assert.true(-1.0)
16 assert.true(not 0.0)
17 assert.true(-1.0e-45)
18 assert.true(float("NaN"))
21 assert.fails(lambda: len(0.0), 'has no len')
22 assert.fails(lambda: [x for x in 0.0], 'float value is not iterable')
25 assert.eq(type(1.234), "float")
[all …]
Dstring.star4 load("assert.star", "assert")
7 assert.eq(r"a\bc", "a\\bc")
10 assert.true("abc")
11 assert.true(chr(0))
12 assert.true(not "")
15 assert.eq("a" + "b" + "c", "abc")
18 assert.eq("abc" * 0, "")
19 assert.eq("abc" * -1, "")
20 assert.eq("abc" * 1, "abc")
21 assert.eq("abc" * 5, "abcabcabcabcabc")
[all …]
/external/fonttools/Tests/
Dunicodedata_test.py7 assert unicodedata.script("a") == "Latn"
8 assert unicodedata.script(chr(0)) == "Zyyy"
9 assert unicodedata.script(chr(0x0378)) == "Zzzz"
10 assert unicodedata.script(chr(0x10FFFF)) == "Zzzz"
13 assert unicodedata.script(chr(0x1E918)) == 'Adlm'
14 assert unicodedata.script(chr(0x1170D)) == 'Ahom'
15 assert unicodedata.script(chr(0x145A0)) == 'Hluw'
16 assert unicodedata.script(chr(0x0607)) == 'Arab'
17 assert unicodedata.script(chr(0x056C)) == 'Armn'
18 assert unicodedata.script(chr(0x10B27)) == 'Avst'
[all …]
/external/scapy/scapy/contrib/
Dhttp2.uts32 assert(f.any2i(None, 0) == 0)
33 assert(f.any2i(None, 3) == 3)
34 assert(f.any2i(None, 1<<5) == 1<<5)
35 assert(f.any2i(None, 1<<16) == 1<<16)
37 assert(f.any2i(None, b'\x1E') == 30)
43 assert(f.m2i(None, b'\x00') == 0)
44 assert(f.m2i(None, b'\x03') == 3)
45 assert(f.m2i(None, b'\xFE') == 254)
46 assert(f.m2i(None, b'\xFF\x00') == 255)
47 assert(f.m2i(None, b'\xFF\xFF\x03') == 766) #0xFF + (0xFF ^ 0x80) + (3<<7)
[all …]
/external/llvm-project/libcxx/test/std/re/re.alg/re.alg.match/
Decma.pass.cpp38 assert(std::regex_match(s, m, std::regex("a"))); in main()
39 assert(m.size() == 1); in main()
40 assert(!m.empty()); in main()
41 assert(!m.prefix().matched); in main()
42 assert(m.prefix().first == s); in main()
43 assert(m.prefix().second == m[0].first); in main()
44 assert(!m.suffix().matched); in main()
45 assert(m.suffix().first == m[0].second); in main()
46 assert(m.suffix().second == s+1); in main()
47 assert(m.length(0) == 1); in main()
[all …]
Dextended.pass.cpp38 assert(std::regex_match(s, m, std::regex("a", std::regex_constants::extended))); in main()
39 assert(m.size() == 1); in main()
40 assert(!m.empty()); in main()
41 assert(!m.prefix().matched); in main()
42 assert(m.prefix().first == s); in main()
43 assert(m.prefix().second == m[0].first); in main()
44 assert(!m.suffix().matched); in main()
45 assert(m.suffix().first == m[0].second); in main()
46 assert(m.suffix().second == s+1); in main()
47 assert(m.length(0) == 1); in main()
[all …]
Dawk.pass.cpp36 assert(std::regex_match(s, m, std::regex("a", std::regex_constants::awk))); in main()
37 assert(m.size() == 1); in main()
38 assert(!m.empty()); in main()
39 assert(!m.prefix().matched); in main()
40 assert(m.prefix().first == s); in main()
41 assert(m.prefix().second == m[0].first); in main()
42 assert(!m.suffix().matched); in main()
43 assert(m.suffix().first == m[0].second); in main()
44 assert(m.suffix().second == s+1); in main()
45 assert(m.length(0) == 1); in main()
[all …]
Dbasic.pass.cpp37 assert(!std::regex_match("a", m, std::regex())); in main()
38 assert(m.size() == 0); in main()
39 assert(m.empty()); in main()
44 assert(std::regex_match(s, m, std::regex("a", std::regex_constants::basic))); in main()
45 assert(m.size() == 1); in main()
46 assert(!m.empty()); in main()
47 assert(!m.prefix().matched); in main()
48 assert(m.prefix().first == s); in main()
49 assert(m.prefix().second == m[0].first); in main()
50 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 …]

12345678910>>...729