Lines Matching refs:items
110 static const int items[] = { 3, 42, 45, 123, 654, -123, -90, 0, 43 };
130 rnd.choose(DE_ARRAY_BEGIN(items), DE_ARRAY_END(items), &itemsDst[0], numItemsPicked);
139 static const int items[] = { 3, 42, 45, 123, 654, -123, -90, 0, 43 };
144 DE_TEST_ASSERT(expected[i] == rnd.choose<int>(DE_ARRAY_BEGIN(items), DE_ARRAY_END(items)));
150 static const int items[] = { 3, 42, 45, 123, 654, -123, -90, 0 };
152 DE_STATIC_ASSERT(DE_LENGTH_OF_ARRAY(items) == DE_LENGTH_OF_ARRAY(weights));
157 DE_TEST_ASSERT(expected[i] == rnd.chooseWeighted<int>(DE_ARRAY_BEGIN(items), DE_ARRAY_END(items), &weights[0]));
163 int items[] = { 3, 42, 45, 123, 654, -123, -90, 0, 43 };
164 static const int expected[][DE_LENGTH_OF_ARRAY(items)] =
181 rnd.shuffle(DE_ARRAY_BEGIN(items), DE_ARRAY_END(items));
182 for(int j = 0; j < DE_LENGTH_OF_ARRAY(items); j++)
183 DE_TEST_ASSERT(expected[i][j] == items[j]);