Home
last modified time | relevance | path

Searched refs:find (Results 1 – 25 of 2725) sorted by relevance

12345678910>>...109

/external/libcxx/test/std/containers/associative/set/
Dfind.pass.cpp42 R r = m.find(5); in main()
44 r = m.find(6); in main()
46 r = m.find(7); in main()
48 r = m.find(8); in main()
50 r = m.find(9); in main()
52 r = m.find(10); in main()
54 r = m.find(11); in main()
56 r = m.find(12); in main()
58 r = m.find(4); in main()
75 R r = m.find(5); in main()
[all …]
/external/libcxx/test/std/containers/associative/multiset/
Dfind.pass.cpp42 R r = m.find(5); in main()
44 r = m.find(6); in main()
46 r = m.find(7); in main()
48 r = m.find(8); in main()
50 r = m.find(9); in main()
52 r = m.find(10); in main()
54 r = m.find(11); in main()
56 r = m.find(12); in main()
58 r = m.find(4); in main()
75 R r = m.find(5); in main()
[all …]
/external/libcxx/test/std/containers/associative/map/map.ops/
Dfind.pass.cpp42 R r = m.find(5); in main()
44 r = m.find(6); in main()
46 r = m.find(7); in main()
48 r = m.find(8); in main()
50 r = m.find(9); in main()
52 r = m.find(10); in main()
54 r = m.find(11); in main()
56 r = m.find(12); in main()
58 r = m.find(4); in main()
75 R r = m.find(5); in main()
[all …]
/external/libcxx/test/std/containers/associative/multimap/multimap.ops/
Dfind.pass.cpp43 R r = m.find(5); in main()
45 r = m.find(6); in main()
47 r = m.find(7); in main()
49 r = m.find(8); in main()
51 r = m.find(9); in main()
53 r = m.find(10); in main()
71 R r = m.find(5); in main()
73 r = m.find(6); in main()
75 r = m.find(7); in main()
77 r = m.find(8); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.multimap/unord.multimap.swap/
Dswap_non_member.pass.cpp82 assert(c1.find(10)->second == "ten"); in main()
83 assert(c1.find(20)->second == "twenty"); in main()
84 assert(c1.find(30)->second == "thirty"); in main()
85 assert(c1.find(40)->second == "forty"); in main()
86 assert(c1.find(50)->second == "fifty"); in main()
87 assert(c1.find(60)->second == "sixty"); in main()
88 assert(c1.find(70)->second == "seventy"); in main()
89 assert(c1.find(80)->second == "eighty"); in main()
137 assert(c2.find(1)->second == "one"); in main()
138 assert(next(c2.find(1))->second == "four"); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.multimap/
Dswap_member.pass.cpp83 assert(c1.find(10)->second == "ten"); in main()
84 assert(c1.find(20)->second == "twenty"); in main()
85 assert(c1.find(30)->second == "thirty"); in main()
86 assert(c1.find(40)->second == "forty"); in main()
87 assert(c1.find(50)->second == "fifty"); in main()
88 assert(c1.find(60)->second == "sixty"); in main()
89 assert(c1.find(70)->second == "seventy"); in main()
90 assert(c1.find(80)->second == "eighty"); in main()
138 assert(c2.find(1)->second == "one"); in main()
139 assert(next(c2.find(1))->second == "four"); in main()
[all …]
/external/skia/tests/
DRefDictTest.cpp22 REPORTER_ASSERT(reporter, NULL == dict.find(NULL)); in DEF_TEST()
23 REPORTER_ASSERT(reporter, NULL == dict.find("foo")); in DEF_TEST()
24 REPORTER_ASSERT(reporter, NULL == dict.find("bar")); in DEF_TEST()
27 REPORTER_ASSERT(reporter, &data0 == dict.find("foo")); in DEF_TEST()
31 REPORTER_ASSERT(reporter, &data0 == dict.find("foo")); in DEF_TEST()
35 REPORTER_ASSERT(reporter, &data1 == dict.find("foo")); in DEF_TEST()
40 REPORTER_ASSERT(reporter, NULL == dict.find("foo")); in DEF_TEST()
46 REPORTER_ASSERT(reporter, &data0 == dict.find("foo")); in DEF_TEST()
47 REPORTER_ASSERT(reporter, &data1 == dict.find("bar")); in DEF_TEST()
52 REPORTER_ASSERT(reporter, &data1 == dict.find("foo")); in DEF_TEST()
[all …]
DDynamicHashTest.cpp103 ASSERT(hash.find(1) != NULL); in DEF_TEST()
104 ASSERT(hash.find(1)->value == 2.0); in DEF_TEST()
105 ASSERT(hash.find(5) != NULL); in DEF_TEST()
106 ASSERT(hash.find(5)->value == 3.0); in DEF_TEST()
109 ASSERT(hash.find(2) == NULL); in DEF_TEST()
110 ASSERT(hash.find(9) == NULL); in DEF_TEST()
126 ASSERT(hash.find(1) == NULL); in DEF_TEST()
127 ASSERT(hash.find(5) != NULL); in DEF_TEST()
128 ASSERT(hash.find(5)->value == 3.0); in DEF_TEST()
133 ASSERT(hash.find(9) != NULL); in DEF_TEST()
[all …]
DGrOrderedSetTest.cpp60 bool existsFind = set.find(i) != set.end(); in DEF_TEST()
66 set.remove(set.find(i)); in DEF_TEST()
72 REPORTER_ASSERT(reporter, set.find(i) == set.end()); in DEF_TEST()
77 set.remove(set.find(0)); in DEF_TEST()
81 REPORTER_ASSERT(reporter, set.find(0) == set.end()); in DEF_TEST()
85 set.remove(set.find(999)); in DEF_TEST()
89 REPORTER_ASSERT(reporter, set.find(999) == set.end()); in DEF_TEST()
106 bool existsFind = set.find(i) != set.end(); in DEF_TEST()
136 REPORTER_ASSERT(reporter, set2.find("dog") == set2.last()); in DEF_TEST()
137 REPORTER_ASSERT(reporter, set2.find("cat") != set2.end()); in DEF_TEST()
[all …]
/external/v8/test/mjsunit/harmony/
Darray-find.js30 assertEquals(1, Array.prototype.find.length);
33 assertEquals(undefined, a.find(function() { return false; }));
34 assertEquals(21, a.find(function() { return true; }));
35 assertEquals(undefined, a.find(function(val) { return 121 === val; }));
36 assertEquals(24, a.find(function(val) { return 24 === val; }));
37 assertEquals(23, a.find(function(val) { return 23 === val; }), null);
38 assertEquals(22, a.find(function(val) { return 22 === val; }), undefined);
51 a.find(function(val, key, obj) {
77 var found = a.find(function(val, key, obj) {
100 var found = a.find(function() {
[all …]
/external/slf4j/slf4j-migrator/src/test/java/org/slf4j/migrator/
DAternativeApproach.java65 assertTrue(m.find()); in test2()
71 assertTrue(m.find()); in test2()
77 assertTrue(m.find()); in test2()
81 assertTrue(m.find()); in test2()
93 assertTrue(m.find()); in test3()
99 assertFalse(m.find()); in test3()
110 assertTrue(m.find()); in test4()
116 assertFalse(m.find()); in test4()
120 assertFalse(m.find()); in test4()
124 assertFalse(m.find()); in test4()
[all …]
/external/llvm/unittests/ADT/
DSparseMultiSetTest.cpp28 EXPECT_TRUE(Set.find(0) == Set.end()); in TEST()
29 EXPECT_TRUE(Set.find(9) == Set.end()); in TEST()
35 EXPECT_TRUE(CSet.find(0) == CSet.end()); in TEST()
36 USet::const_iterator I = CSet.find(5); in TEST()
51 EXPECT_TRUE(Set.find(0) == Set.end()); in TEST()
52 EXPECT_TRUE(Set.find(9) == Set.end()); in TEST()
60 EXPECT_TRUE(I == ++Set.find(5)); in TEST()
62 EXPECT_TRUE(I == Set.find(5)); in TEST()
65 I = Set.find(1); in TEST()
68 EXPECT_EQ(5u, *Set.find(5)); in TEST()
[all …]
DSmallStringTest.cpp119 EXPECT_EQ(2U, theString.find('l')); in TEST_F()
120 EXPECT_EQ(StringRef::npos, theString.find('z')); in TEST_F()
121 EXPECT_EQ(StringRef::npos, theString.find("helloworld")); in TEST_F()
122 EXPECT_EQ(0U, theString.find("hello")); in TEST_F()
123 EXPECT_EQ(1U, theString.find("ello")); in TEST_F()
124 EXPECT_EQ(StringRef::npos, theString.find("zz")); in TEST_F()
125 EXPECT_EQ(2U, theString.find("ll", 2)); in TEST_F()
126 EXPECT_EQ(StringRef::npos, theString.find("ll", 3)); in TEST_F()
127 EXPECT_EQ(0U, theString.find("")); in TEST_F()
145 EXPECT_EQ(36U, theString.find("hello")); in TEST_F()
[all …]
/external/ceres-solver/internal/ceres/
Dparameter_block_ordering_test.cc92 EXPECT_TRUE(vertices.find(parameter_blocks[i]) != vertices.end()); in TEST_F()
98 EXPECT_TRUE(neighbors.find(parameter_blocks[2]) != neighbors.end()); in TEST_F()
99 EXPECT_TRUE(neighbors.find(parameter_blocks[3]) != neighbors.end()); in TEST_F()
105 EXPECT_TRUE(neighbors.find(parameter_blocks[2]) != neighbors.end()); in TEST_F()
111 EXPECT_TRUE(neighbors.find(parameter_blocks[0]) != neighbors.end()); in TEST_F()
112 EXPECT_TRUE(neighbors.find(parameter_blocks[1]) != neighbors.end()); in TEST_F()
113 EXPECT_TRUE(neighbors.find(parameter_blocks[3]) != neighbors.end()); in TEST_F()
119 EXPECT_TRUE(neighbors.find(parameter_blocks[0]) != neighbors.end()); in TEST_F()
120 EXPECT_TRUE(neighbors.find(parameter_blocks[2]) != neighbors.end()); in TEST_F()
145 EXPECT_TRUE(vertices.find(parameter_blocks[0]) == vertices.end()); in TEST_F()
[all …]
/external/elfutils/src/tests/
Drun-find-prologues.sh23 testrun_compare ${abs_builddir}/find-prologues -e testfile <<\EOF
29 testrun_compare ${abs_builddir}/find-prologues -e testfile11 <<\EOF
40 testrun_compare ${abs_builddir}/find-prologues -e testfile22 <<\EOF
45 testrun_compare ${abs_builddir}/find-prologues -e testfile24 <<\EOF
50 testrun_compare ${abs_builddir}/find-prologues -e testfile25 <<\EOF
54 testrun_compare ${abs_builddir}/find-prologues -e testfile3 <<\EOF
60 testrun_compare ${abs_builddir}/find-prologues -e testfile4 <<\EOF
68 testrun_compare ${abs_builddir}/find-prologues -e testfile5 <<\EOF
74 testrun_compare ${abs_builddir}/find-prologues -e testfile6 <<\EOF
/external/libcxx/test/std/containers/unord/unord.multiset/unord.multiset.swap/
Dswap_non_member.pass.cpp81 assert(*c1.find(10) == 10); in main()
82 assert(*c1.find(20) == 20); in main()
83 assert(*c1.find(30) == 30); in main()
84 assert(*c1.find(40) == 40); in main()
85 assert(*c1.find(50) == 50); in main()
86 assert(*c1.find(60) == 60); in main()
87 assert(*c1.find(70) == 70); in main()
88 assert(*c1.find(80) == 80); in main()
180 assert(*c1.find(10) == 10); in main()
181 assert(*c1.find(20) == 20); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.set/
Dswap_member.pass.cpp81 assert(*c1.find(10) == 10); in main()
82 assert(*c1.find(20) == 20); in main()
83 assert(*c1.find(30) == 30); in main()
84 assert(*c1.find(40) == 40); in main()
85 assert(*c1.find(50) == 50); in main()
86 assert(*c1.find(60) == 60); in main()
87 assert(*c1.find(70) == 70); in main()
88 assert(*c1.find(80) == 80); in main()
180 assert(*c1.find(10) == 10); in main()
181 assert(*c1.find(20) == 20); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.set/unord.set.swap/
Dswap_non_member.pass.cpp81 assert(*c1.find(10) == 10); in main()
82 assert(*c1.find(20) == 20); in main()
83 assert(*c1.find(30) == 30); in main()
84 assert(*c1.find(40) == 40); in main()
85 assert(*c1.find(50) == 50); in main()
86 assert(*c1.find(60) == 60); in main()
87 assert(*c1.find(70) == 70); in main()
88 assert(*c1.find(80) == 80); in main()
180 assert(*c1.find(10) == 10); in main()
181 assert(*c1.find(20) == 20); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.multiset/
Dswap_member.pass.cpp81 assert(*c1.find(10) == 10); in main()
82 assert(*c1.find(20) == 20); in main()
83 assert(*c1.find(30) == 30); in main()
84 assert(*c1.find(40) == 40); in main()
85 assert(*c1.find(50) == 50); in main()
86 assert(*c1.find(60) == 60); in main()
87 assert(*c1.find(70) == 70); in main()
88 assert(*c1.find(80) == 80); in main()
180 assert(*c1.find(10) == 10); in main()
181 assert(*c1.find(20) == 20); in main()
[all …]
/external/llvm/utils/buildit/
Dbuild_llvm134 T=`xcrun -sdk $SDKROOT -find ${prog}`
143 T=`xcrun -sdk $SDKROOT -find ${prog}`
177 export CC=`xcrun -sdk iphonesimulator -find clang`
178 export CXX=`xcrun -sdk iphonesimulator -find clang++`
188 export CC=`xcrun -sdk macosx -find clang`
189 export CXX=`xcrun -sdk macosx -find clang++`
246 for file in `find $DEST_DIR$DEST_ROOT/include -type f -print`; do
257 STRIP=`xcrun -sdk $SDKROOT -find strip`
310 DSYMUTIL=`xcrun -find dsymutil`
311 find $DEST_DIR -perm -0111 -type f \
[all …]
/external/libcxx/test/std/experimental/string.view/string.view.find/
Dfind_char_size.pass.cpp24 assert(s.find(c, pos) == x); in test()
33 assert(s.find(c) == x); in test()
75 static_assert (sv1.find( 'c', 0 ) == SV::npos, "" ); in main()
76 static_assert (sv1.find( 'c', 1 ) == SV::npos, "" ); in main()
77 static_assert (sv2.find( 'c', 0 ) == 2, "" ); in main()
78 static_assert (sv2.find( 'c', 1 ) == 2, "" ); in main()
79 static_assert (sv2.find( 'c', 2 ) == 2, "" ); in main()
80 static_assert (sv2.find( 'c', 3 ) == SV::npos, "" ); in main()
81 static_assert (sv2.find( 'c', 4 ) == SV::npos, "" ); in main()
/external/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.wchar.t/
Dfind.pass.cpp22 assert(std::char_traits<wchar_t>::find(s1, 3, wchar_t(1)) == s1); in main()
23 assert(std::char_traits<wchar_t>::find(s1, 3, wchar_t(2)) == s1+1); in main()
24 assert(std::char_traits<wchar_t>::find(s1, 3, wchar_t(3)) == s1+2); in main()
25 assert(std::char_traits<wchar_t>::find(s1, 3, wchar_t(4)) == 0); in main()
26 assert(std::char_traits<wchar_t>::find(s1, 3, wchar_t(0)) == 0); in main()
27 assert(std::char_traits<wchar_t>::find(NULL, 0, wchar_t(0)) == 0); in main()
/external/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char/
Dfind.pass.cpp22 assert(std::char_traits<char>::find(s1, 3, char(1)) == s1); in main()
23 assert(std::char_traits<char>::find(s1, 3, char(2)) == s1+1); in main()
24 assert(std::char_traits<char>::find(s1, 3, char(3)) == s1+2); in main()
25 assert(std::char_traits<char>::find(s1, 3, char(4)) == 0); in main()
26 assert(std::char_traits<char>::find(s1, 3, char(0)) == 0); in main()
27 assert(std::char_traits<char>::find(NULL, 0, char(0)) == 0); in main()
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
DAbstractListIndexOfTester.java37 protected abstract int find(Object o); in find() method in AbstractListIndexOfTester
48 0, find(getOrderedElements().get(0))); in testFind_yes()
53 -1, find(samples.e3)); in testFind_no()
59 -1, find(null)); in testFind_nullNotContainedButSupported()
67 -1, find(null)); in testFind_nullNotContainedAndUnsupported()
77 -1, find(samples.e3)); in testFind_nonNullWhenNullContained()
85 getNullLocation(), find(null)); in testFind_nullContained()
91 -1, find(WrongType.VALUE)); in testFind_wrongType()
/external/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char16_t/
Dfind.pass.cpp23 assert(std::char_traits<char16_t>::find(s1, 3, char16_t(1)) == s1); in main()
24 assert(std::char_traits<char16_t>::find(s1, 3, char16_t(2)) == s1+1); in main()
25 assert(std::char_traits<char16_t>::find(s1, 3, char16_t(3)) == s1+2); in main()
26 assert(std::char_traits<char16_t>::find(s1, 3, char16_t(4)) == 0); in main()
27 assert(std::char_traits<char16_t>::find(s1, 3, char16_t(0)) == 0); in main()
28 assert(std::char_traits<char16_t>::find(NULL, 0, char16_t(0)) == 0); in main()

12345678910>>...109