Lines Matching refs:slice
28 test_bounded_array_ref<T> slice = view.slice(0, 0); in tests() local
29 CHECK(slice.size() == 0); in tests()
33 test_bounded_array_ref<T> slice = view.slice(0, 1); in tests() local
34 CHECK(slice.size() == 1); in tests()
35 CHECK(&slice[0] == &array[0]); in tests()
39 test_bounded_array_ref<T> slice = view.slice(0, 2); in tests() local
40 CHECK(slice.size() == 2); in tests()
41 CHECK(&slice[0] == &array[0]); in tests()
42 CHECK(&slice[1] == &array[1]); in tests()
46 test_bounded_array_ref<T> slice = view.slice(0, 5); in tests() local
47 CHECK(slice.size() == 5); in tests()
48 CHECK(&slice[0] == &array[0]); in tests()
49 CHECK(&slice[1] == &array[1]); in tests()
50 CHECK(&slice[2] == &array[2]); in tests()
51 CHECK(&slice[3] == &array[3]); in tests()
52 CHECK(&slice[4] == &array[4]); in tests()
57 tracking_bounded_array_ref<T> slice = view.slice(0, 6); in tests() local
65 test_bounded_array_ref<T> slice = view.slice(1, 0); in tests() local
66 CHECK(slice.size() == 0); in tests()
70 test_bounded_array_ref<T> slice = view.slice(1, 3); in tests() local
71 CHECK(slice.size() == 3); in tests()
72 CHECK(&slice[0] == &array[1]); in tests()
73 CHECK(&slice[1] == &array[2]); in tests()
74 CHECK(&slice[2] == &array[3]); in tests()
78 test_bounded_array_ref<T> slice = view.slice(1, 4); in tests() local
79 CHECK(slice.size() == 4); in tests()
80 CHECK(&slice[0] == &array[1]); in tests()
81 CHECK(&slice[1] == &array[2]); in tests()
82 CHECK(&slice[2] == &array[3]); in tests()
83 CHECK(&slice[3] == &array[4]); in tests()
88 tracking_bounded_array_ref<T> slice = view.slice(1, 5); in tests() local
94 tracking_bounded_array_ref<T> slice = view.slice(1, 10); in tests() local
101 test_bounded_array_ref<T> slice = view.slice(3, 0); in tests() local
102 CHECK(slice.size() == 0); in tests()
106 test_bounded_array_ref<T> slice = view.slice(3, 2); in tests() local
107 CHECK(slice.size() == 2); in tests()
108 CHECK(&slice[0] == &array[3]); in tests()
109 CHECK(&slice[1] == &array[4]); in tests()
114 tracking_bounded_array_ref<T> slice = view.slice(3, 3); in tests() local
120 tracking_bounded_array_ref<T> slice = view.slice(3, 100); in tests() local
127 test_bounded_array_ref<T> slice = view.slice(4, 0); in tests() local
128 CHECK(slice.size() == 0); in tests()
132 test_bounded_array_ref<T> slice = view.slice(4, 1); in tests() local
133 CHECK(slice.size() == 1); in tests()
134 CHECK(&slice[0] == &array[4]); in tests()
139 tracking_bounded_array_ref<T> slice = view.slice(4, 2); in tests() local
146 test_bounded_array_ref<T> slice = view.slice(5, 0); in tests() local
147 CHECK(slice.size() == 0); in tests()
152 tracking_bounded_array_ref<T> slice = view.slice(5, 1); in tests() local
158 tracking_bounded_array_ref<T> slice = view.slice(5, 10); in tests() local
166 tracking_bounded_array_ref<T> slice = view.slice(6, 0); in tests() local
172 tracking_bounded_array_ref<T> slice = view.slice(6, 1); in tests() local
178 tracking_bounded_array_ref<T> slice = view.slice(8, 10); in tests() local
188 tracking_bounded_array_ref<T> slice = view.slice(n, m); in tests() local
196 test_bounded_array_ref<T> slice = view.slice(3, 2); in tests() local
197 CHECK(slice.begin() == view.begin() + 3); in tests()
198 CHECK(slice.end() == view.begin() + 3 + 2); in tests()
204 test_bounded_array_ref<T> slice = view.slice(1, 4).slice(2, 2); in tests() local
205 CHECK(slice.size() == 2); in tests()
206 CHECK(&slice[0] == &array[3]); in tests()
207 CHECK(&slice[1] == &array[4]); in tests()
213 test_bounded_array_ref<T> slice = view.slice(0, 0); in tests() local
214 CHECK(slice.size() == 0); in tests()
219 tracking_bounded_array_ref<T> slice = view.slice(0, 1); in tests() local
224 T_DECL(slice, "bounded_array_ref.slice", T_META_TAG_VM_PREFERRED) {