Lines Matching refs:expected
54 …static const bool expected[] = { true, false, false, false, true, true, false, false, false, false… in Random_selfTest() local
56 for (int i = 0; i < DE_LENGTH_OF_ARRAY(expected); i++) in Random_selfTest()
57 DE_TEST_ASSERT(expected[i] == rnd.getBool()); in Random_selfTest()
63 static const int expected[] = { -6628, -6483, 802, -7758, -8463, 3165, 9216, 3107, 1851, 8707 }; in Random_selfTest() local
65 for (int i = 0; i < DE_LENGTH_OF_ARRAY(expected); i++) in Random_selfTest()
66 DE_TEST_ASSERT(expected[i] == rnd.getInt(-10000, 10000)); in Random_selfTest()
72 …static const deUint32 expected[] = { 3694588092u, 3135240271u, 882874943u, 2108407657u, 376640368u… in Random_selfTest() local
74 for (int i = 0; i < DE_LENGTH_OF_ARRAY(expected); i++) in Random_selfTest()
75 DE_TEST_ASSERT(expected[i] == rnd.getUint32()); in Random_selfTest()
81 …static const deUint64 expected[] = { 15868135030466279503ull, 3791919008751271785ull, 161765806430… in Random_selfTest() local
83 for (int i = 0; i < DE_LENGTH_OF_ARRAY(expected); i++) in Random_selfTest()
84 DE_TEST_ASSERT(expected[i] == rnd.getUint64()); in Random_selfTest()
90 …static const float expected[] = { 0.763413f, 0.679680f, 0.288965f, 0.854431f, 0.403095f, 0.198132f… in Random_selfTest() local
93 for (int i = 0; i < DE_LENGTH_OF_ARRAY(expected); i++) in Random_selfTest()
94 DE_TEST_ASSERT(de::abs(expected[i] - rnd.getFloat()) < epsilon); in Random_selfTest()
100 …static const float expected[] = { 824.996643f, 675.039185f, -24.691774f, 987.999756f, 179.702286f,… in Random_selfTest() local
103 for (int i = 0; i < DE_LENGTH_OF_ARRAY(expected); i++) in Random_selfTest()
104 DE_TEST_ASSERT(de::abs(expected[i] - rnd.getFloat(-542.2f, 1248.7f)) < epsilon); in Random_selfTest()
112 static const int expected[][numItemsPicked] = in Random_selfTest() local
127 for (int i = 0; i < DE_LENGTH_OF_ARRAY(expected); i++) in Random_selfTest()
132 DE_TEST_ASSERT(expected[i][j] == itemsDst[j]); in Random_selfTest()
140 static const int expected[] = { 43, 123, -90, -90, 0, 3, 43, 0, 654, 43 }; in Random_selfTest() local
143 for (int i = 0; i < DE_LENGTH_OF_ARRAY(expected); i++) in Random_selfTest()
144 DE_TEST_ASSERT(expected[i] == rnd.choose<int>(DE_ARRAY_BEGIN(items), DE_ARRAY_END(items))); in Random_selfTest()
153 static const int expected[] = { -90, 654, 45, 0, 45, 45, -123, -90, 45, 654 }; in Random_selfTest() local
156 for (int i = 0; i < DE_LENGTH_OF_ARRAY(expected); i++) in Random_selfTest()
157 …DE_TEST_ASSERT(expected[i] == rnd.chooseWeighted<int>(DE_ARRAY_BEGIN(items), DE_ARRAY_END(items), … in Random_selfTest()
164 static const int expected[][DE_LENGTH_OF_ARRAY(items)] = in Random_selfTest() local
179 for (int i = 0; i < DE_LENGTH_OF_ARRAY(expected); i++) in Random_selfTest()
183 DE_TEST_ASSERT(expected[i][j] == items[j]); in Random_selfTest()