Lines Matching refs:checked_dst
129 CheckedNumeric<Dst> checked_dst = 1; in TestSpecializedArithmetic() local
130 TEST_EXPECTED_VALUE(0, checked_dst %= 1); in TestSpecializedArithmetic()
169 CheckedNumeric<Dst> checked_dst = 1; in TestSpecializedArithmetic() local
170 TEST_EXPECTED_VALUE(0, checked_dst %= 1); in TestSpecializedArithmetic()
236 CheckedNumeric<Dst> checked_dst = 1; in TestArithmetic() local
237 TEST_EXPECTED_VALUE(2, checked_dst += 1); in TestArithmetic()
238 checked_dst = 1; in TestArithmetic()
239 TEST_EXPECTED_VALUE(0, checked_dst -= 1); in TestArithmetic()
240 checked_dst = 1; in TestArithmetic()
241 TEST_EXPECTED_VALUE(1, checked_dst *= 1); in TestArithmetic()
242 checked_dst = 1; in TestArithmetic()
243 TEST_EXPECTED_VALUE(1, checked_dst /= 1); in TestArithmetic()
352 const CheckedNumeric<Dst> checked_dst = SrcLimits::max(); in Test() local
353 TEST_EXPECTED_VALIDITY(RANGE_VALID, checked_dst); in Test()
357 TEST_EXPECTED_VALIDITY(RANGE_VALID, SrcLimits::max() * checked_dst); in Test()
360 TEST_EXPECTED_VALIDITY(RANGE_OVERFLOW, SrcLimits::max() * checked_dst); in Test()
361 TEST_EXPECTED_VALIDITY(RANGE_VALID, checked_dst + 1); in Test()
364 TEST_EXPECTED_VALIDITY(RANGE_OVERFLOW, checked_dst + 1); in Test()
392 const CheckedNumeric<Dst> checked_dst; in Test() local
393 TEST_EXPECTED_VALIDITY(RANGE_OVERFLOW, checked_dst + SrcLimits::max()); in Test()
394 TEST_EXPECTED_VALUE(1, checked_dst + static_cast<Src>(1)); in Test()
395 TEST_EXPECTED_VALIDITY(RANGE_UNDERFLOW, checked_dst - SrcLimits::max()); in Test()
418 TEST_EXPECTED_VALUE(-1, checked_dst - static_cast<Src>(1)); in Test()
422 TEST_EXPECTED_VALIDITY(RANGE_INVALID, checked_dst - static_cast<Src>(1)); in Test()
438 const CheckedNumeric<Dst> checked_dst; in Test() local
439 TEST_EXPECTED_VALUE(SrcLimits::max(), checked_dst + SrcLimits::max()); in Test()
440 TEST_EXPECTED_VALIDITY(RANGE_UNDERFLOW, checked_dst + static_cast<Src>(-1)); in Test()
441 TEST_EXPECTED_VALIDITY(RANGE_UNDERFLOW, checked_dst + -SrcLimits::max()); in Test()
461 const CheckedNumeric<Dst> checked_dst; in Test() local
462 TEST_EXPECTED_VALUE(1, checked_dst + static_cast<Src>(1)); in Test()
463 TEST_EXPECTED_VALIDITY(RANGE_OVERFLOW, checked_dst + SrcLimits::max()); in Test()
464 TEST_EXPECTED_VALIDITY(RANGE_UNDERFLOW, checked_dst + static_cast<Src>(-1)); in Test()
465 TEST_EXPECTED_VALIDITY(RANGE_UNDERFLOW, checked_dst + -SrcLimits::max()); in Test()
503 const CheckedNumeric<Dst> checked_dst; in Test() local
504 TEST_EXPECTED_VALUE(1, checked_dst + static_cast<Src>(1)); in Test()
505 TEST_EXPECTED_VALIDITY(RANGE_OVERFLOW, checked_dst + SrcLimits::max()); in Test()
506 TEST_EXPECTED_VALUE(SrcLimits::min(), checked_dst + SrcLimits::min()); in Test()