Lines Matching refs:TestData
54 namespace TestData {
71 CUInt128 test((uint8_t *)&TestData::sequence);
73 ASSERT_TRUE_M(TestData::sequence[0] == result[0] &&
74 TestData::sequence[1] == result[1] &&
75 TestData::sequence[2] == result[2] &&
76 TestData::sequence[3] == result[3] &&
77 TestData::sequence[4] == result[4] &&
78 TestData::sequence[5] == result[5] &&
79 TestData::sequence[6] == result[6] &&
80 TestData::sequence[7] == result[7] &&
81 TestData::sequence[8] == result[8] &&
82 TestData::sequence[9] == result[9] &&
83 TestData::sequence[10] == result[10] &&
84 TestData::sequence[11] == result[11] &&
85 TestData::sequence[12] == result[12] &&
86 TestData::sequence[13] == result[13] &&
87 TestData::sequence[14] == result[14] &&
88 TestData::sequence[15] == result[15],
89 wxString(wxT("Expected '")) + StringFrom(TestData::sequence) + wxT("' but got '") + StringFrom(result) + wxT("'"));
94 CUInt128 test((uint8_t *)&TestData::sequence);
100 CUInt128 test((uint8_t *)&TestData::sequence);
103 CUInt128 testZero((uint8_t *)&TestData::zero);
109 CUInt128 test((uint8_t *)&TestData::sequence);
119 CUInt128 a((uint8_t *)&TestData::sequence);
120 CUInt128 b((uint8_t *)&TestData::one);
128 ASSERT_TRUE(CUInt128((uint8_t *)&TestData::uintValue) == 0x12345678u);
129 CUInt128 test((uint8_t *)&TestData::sequence);
138 ASSERT_TRUE(0x12345678u == CUInt128((uint8_t *)&TestData::uintValue));
139 CUInt128 test((uint8_t *)&TestData::sequence);
149 CUInt128 ref((uint8_t *)&TestData::zero);
156 CUInt128 a((uint8_t *)&TestData::sequence);
166 CUInt128 zero((uint8_t *)&TestData::zero);
167 CUInt128 minusOne((uint8_t *)&TestData::minusOne);
175 ASSERT_EQUALS(CUInt128((uint8_t *)&TestData::uintValue), CUInt128(0x12345678u));
180 CUInt128 a((uint8_t *)&TestData::sequence);
188 CUInt128 a((uint8_t *)&TestData::uintValue);
203 ASSERT_EQUALS(CUInt128((uint8_t *)&TestData::uintValue), test);
209 ASSERT_EQUALS(CUInt128((uint8_t *)&TestData::sequence), test);
212 ASSERT_EQUALS(CUInt128((uint8_t *)&TestData::sequence), test);
217 ASSERT_EQUALS(CUInt128((uint8_t *)&TestData::sequence), test);
222 CUInt128 a((uint8_t *)&TestData::sequence);
231 CUInt128 a((uint8_t *)&TestData::uintValue);
240 CUInt128 a((uint8_t *)&TestData::sequence);
253 CUInt128 test((uint8_t *)&TestData::sequence);
261 CUInt128 test((uint8_t *)&TestData::one);
268 ASSERT_EQUALS(CUInt128((uint8_t *)&TestData::one), test);
275 test.SetValueBE((uint8_t *)&TestData::one);
278 test.SetValueBE((uint8_t *)&TestData::one);
280 ASSERT_EQUALS(CUInt128((uint8_t *)&TestData::zero), test);
290 CUInt128 a((uint8_t *)&TestData::sequence);
302 a.SetValueBE((uint8_t *)&TestData::minusOne);
303 a.Add(CUInt128((uint8_t *)&TestData::one));
311 CUInt128 a((uint8_t *)&TestData::sequence);
317 a.SetValueBE((uint8_t *)&TestData::minusOne);
340 ASSERT_EQUALS(CUInt128((uint8_t *)&TestData::sequence), a);
342 a.Subtract(CUInt128((uint8_t *)&TestData::one));
343 ASSERT_EQUALS(CUInt128((uint8_t *)&TestData::minusOne), a);
355 ASSERT_EQUALS(CUInt128((uint8_t *)&TestData::sequence), a);
358 ASSERT_EQUALS(CUInt128((uint8_t *)&TestData::minusOne), a);
365 CUInt128 a((uint8_t *)&TestData::sequence);
386 CUInt128 test((uint8_t *)&TestData::one);
393 ASSERT_EQUALS(CUInt128((uint8_t *)&TestData::one), test);
400 test.SetValueBE((uint8_t *)&TestData::one);
403 test.SetValueBE((uint8_t *)&TestData::one);
405 ASSERT_EQUALS(CUInt128((uint8_t *)&TestData::zero), test);
415 CUInt128 a((uint8_t *)&TestData::sequence);
427 a.SetValueBE((uint8_t *)&TestData::minusOne);
428 a += CUInt128((uint8_t *)&TestData::one);
436 CUInt128 a((uint8_t *)&TestData::sequence);
442 a.SetValueBE((uint8_t *)&TestData::minusOne);
465 ASSERT_EQUALS(CUInt128((uint8_t *)&TestData::sequence), a);
467 a -= CUInt128((uint8_t *)&TestData::one);
468 ASSERT_EQUALS(CUInt128((uint8_t *)&TestData::minusOne), a);
480 ASSERT_EQUALS(CUInt128((uint8_t *)&TestData::sequence), a);
483 ASSERT_EQUALS(CUInt128((uint8_t *)&TestData::minusOne), a);
490 CUInt128 a((uint8_t *)&TestData::sequence);
538 test.SetValueBE((uint8_t *)&TestData::sequence);
540 ASSERT_EQUALS(CUInt128((uint8_t *)&TestData::sequence), test);
545 CUInt128 a((uint8_t *)&TestData::sequence);
546 CUInt128 b((uint8_t *)&TestData::one);
554 ASSERT_FALSE(CUInt128((uint8_t *)&TestData::uintValue) != 0x12345678u);
555 CUInt128 test((uint8_t *)&TestData::sequence);
564 ASSERT_FALSE(0x12345678u != CUInt128((uint8_t *)&TestData::uintValue));
565 CUInt128 test((uint8_t *)&TestData::sequence);
716 CUInt128 a((uint8_t *)&TestData::sequence);
736 CUInt128 a((uint8_t *)&TestData::randomValue);
737 CUInt128 b((uint8_t *)&TestData::sequence);
757 CUInt128 a((uint8_t *)&TestData::randomValue);
758 CUInt128 b((uint8_t *)&TestData::sequence);
774 CUInt128 a((uint8_t *)&TestData::randomValue);
796 CUInt128 a((uint8_t *)&TestData::randomValue);
815 CUInt128 a((uint8_t *)&TestData::randomValue);
830 CUInt128 a((uint8_t *)&TestData::randomValue);
852 CUInt128 a((uint8_t *)&TestData::randomValue);
866 CUInt128 a((uint8_t *)&TestData::randomValue);