• Home
  • Raw
  • Download

Lines Matching +full:array +full:- +full:unique

4  * Use of this source code is governed by a BSD-style license that can be
19 #include <array>
44 REPORTER_ASSERT(reporter, obj.unique()); in test_autounref()
48 REPORTER_ASSERT(reporter, obj.unique()); in test_autounref()
51 REPORTER_ASSERT(reporter, obj.unique()); in test_autounref()
56 REPORTER_ASSERT(reporter, !obj.unique()); in test_autounref()
60 REPORTER_ASSERT(reporter, obj.unique()); in test_autounref()
66 REPORTER_ASSERT(reporter, obj0.unique()); in test_autostarray()
67 REPORTER_ASSERT(reporter, obj1.unique()); in test_autostarray()
78 REPORTER_ASSERT(reporter, !obj0.unique()); in test_autostarray()
79 REPORTER_ASSERT(reporter, !obj1.unique()); in test_autostarray()
81 // test out reset with data in the array (and a new allocation) in test_autostarray()
84 REPORTER_ASSERT(reporter, obj0.unique()); in test_autostarray()
85 REPORTER_ASSERT(reporter, obj1.unique()); in test_autostarray()
93 // test out destructor with data in the array (and using existing allocation) in test_autostarray()
94 REPORTER_ASSERT(reporter, obj0.unique()); in test_autostarray()
95 REPORTER_ASSERT(reporter, obj1.unique()); in test_autostarray()
104 REPORTER_ASSERT(reporter, !obj0.unique()); in test_autostarray()
105 REPORTER_ASSERT(reporter, !obj1.unique()); in test_autostarray()
107 // Test out resut with data in the array and malloced storage in test_autostarray()
109 REPORTER_ASSERT(reporter, obj0.unique()); in test_autostarray()
110 REPORTER_ASSERT(reporter, obj1.unique()); in test_autostarray()
115 REPORTER_ASSERT(reporter, !obj0.unique()); in test_autostarray()
116 REPORTER_ASSERT(reporter, !obj1.unique()); in test_autostarray()
119 REPORTER_ASSERT(reporter, obj0.unique()); in test_autostarray()
120 REPORTER_ASSERT(reporter, obj1.unique()); in test_autostarray()
124 REPORTER_ASSERT(reporter, !obj0.unique()); in test_autostarray()
125 REPORTER_ASSERT(reporter, !obj1.unique()); in test_autostarray()
128 REPORTER_ASSERT(reporter, obj0.unique()); in test_autostarray()
129 REPORTER_ASSERT(reporter, obj1.unique()); in test_autostarray()
137 int i, array[kSEARCH_COUNT]; in test_search() local
141 array[i] = rand.nextS(); in test_search()
144 SkTHeapSort<int>(array, kSEARCH_COUNT); in test_search()
147 REPORTER_ASSERT(reporter, array[i-1] <= array[i]); in test_search()
152 int index = SkTSearch<int>(array, kSEARCH_COUNT, array[i], sizeof(int)); in test_search()
160 int index = SkTSearch<int>(array, kSEARCH_COUNT, value, sizeof(int)); in test_search()
164 index < kSEARCH_COUNT && array[index] == value); in test_search()
169 REPORTER_ASSERT(reporter, value < array[index]); in test_search()
171 REPORTER_ASSERT(reporter, value > array[index - 1]); in test_search()
175 REPORTER_ASSERT(reporter, value > array[kSEARCH_COUNT - 1]); in test_search()
310 std::array<int, 4> D = {{100, 200, 300, 400}}; in DEF_TEST()
338 // Check ranged-for in DEF_TEST()
483 std::array<int, 4> D = {{100, 200, 300, 400}}; in DEF_TEST()
608 //constexpr static std::array<int, 4> cD = {{100, 200, 300, 400}}; in DEF_TEST()
619 // that's likely to break -- it can be converted to a quiet NaN). in DEF_TEST()
622 0x80000000, // -0.0f in DEF_TEST()