Lines Matching +full:- +full:10

47 …static const UintType kNumbers[] = {0, 1, 20, kMid - 1, kMid, kMid + 1, kMax - 20, kMax - 1, kMax};  in TestSerialNumber()
55 VerifyOrQuit(SerialNumber::IsGreater<UintType>(number + kMid - 1, number)); in TestSerialNumber()
58 VerifyOrQuit(!SerialNumber::IsGreater<UintType>(number + kMax - 1, number)); in TestSerialNumber()
60 VerifyOrQuit(SerialNumber::IsLess<UintType>(number - 1, number)); in TestSerialNumber()
61 VerifyOrQuit(SerialNumber::IsLess<UintType>(number - kMid + 1, number)); in TestSerialNumber()
62 VerifyOrQuit(SerialNumber::IsLess<UintType>(number - kMid, number)); in TestSerialNumber()
63 VerifyOrQuit(!SerialNumber::IsLess<UintType>(number - kMid - 2, number)); in TestSerialNumber()
64 VerifyOrQuit(!SerialNumber::IsLess<UintType>(number - kMax + 1, number)); in TestSerialNumber()
83 VerifyOrQuit(Clamp<uint8_t>(1, 5, 10) == 5); in TestNumUtils()
84 VerifyOrQuit(Clamp<uint8_t>(5, 5, 10) == 5); in TestNumUtils()
85 VerifyOrQuit(Clamp<uint8_t>(7, 5, 10) == 7); in TestNumUtils()
86 VerifyOrQuit(Clamp<uint8_t>(10, 5, 10) == 10); in TestNumUtils()
87 VerifyOrQuit(Clamp<uint8_t>(12, 5, 10) == 10); in TestNumUtils()
89 VerifyOrQuit(Clamp<uint8_t>(10, 10, 10) == 10); in TestNumUtils()
90 VerifyOrQuit(Clamp<uint8_t>(9, 10, 10) == 10); in TestNumUtils()
91 VerifyOrQuit(Clamp<uint8_t>(11, 10, 10) == 10); in TestNumUtils()
129 VerifyOrQuit(DivideAndRoundToClosest<uint8_t>(0, 10) == 0); in TestNumUtils()
130 VerifyOrQuit(DivideAndRoundToClosest<uint8_t>(4, 10) == 0); in TestNumUtils()
131 VerifyOrQuit(DivideAndRoundToClosest<uint8_t>(5, 10) == 1); in TestNumUtils()
132 VerifyOrQuit(DivideAndRoundToClosest<uint8_t>(9, 10) == 1); in TestNumUtils()
133 VerifyOrQuit(DivideAndRoundToClosest<uint8_t>(10, 10) == 1); in TestNumUtils()
160 VerifyOrQuit(Preference::kLow == -1); in TestPreference()
167 VerifyOrQuit(Preference::To2BitUint(-2) == 0x3); in TestPreference()
169 VerifyOrQuit(Preference::To2BitUint(-128) == 0x3); in TestPreference()
193 VerifyOrQuit(!Preference::IsValid(-2)); in TestPreference()
195 VerifyOrQuit(!Preference::IsValid(-128)); in TestPreference()