Lines Matching refs:expect
203 auto expect = [&valid](bool condition, std::string message) { in isValid() local
212 expect(false, "IdentifierType::INVALID"); in isValid()
215 expect(val > 100000u, "f > 100MHz"); in isValid()
219 expect(val > 100u, "f > 100kHz"); in isValid()
220 expect(val < 10000000u, "f < 10GHz"); in isValid()
223 expect(val != 0u, "RDS PI != 0"); in isValid()
224 expect(val <= 0xFFFFu, "16bit id"); in isValid()
232 expect(stationId != 0u, "HD station id != 0"); in isValid()
233 expect(subchannel < 8u, "HD subch < 8"); in isValid()
234 expect(freq > 100u, "f > 100kHz"); in isValid()
235 expect(freq < 10000000u, "f < 10GHz"); in isValid()
242 expect((ch >= '0' && ch <= '9') || (ch >= 'A' && ch <= 'Z'), in isValid()
251 expect(sid != 0u, "DAB SId != 0"); in isValid()
252 expect(ecc >= 0xA0u && ecc <= 0xF6u, "Invalid ECC, see ETSI TS 101 756 V2.1.1"); in isValid()
256 expect(val != 0u, "DAB ensemble != 0"); in isValid()
257 expect(val <= 0xFFFFu, "16bit id"); in isValid()
260 expect(val > 0xFu, "12bit SCId (not 4bit SCIdS)"); in isValid()
261 expect(val <= 0xFFFu, "12bit id"); in isValid()
264 expect(val != 0u, "DRM SId != 0"); in isValid()
265 expect(val <= 0xFFFFFFu, "24bit id"); in isValid()
268 expect(val != 0u, "SXM SId != 0"); in isValid()
269 expect(val <= 0xFFFFFFFFu, "32bit id"); in isValid()
272 expect(val < 1000u, "SXM channel < 1000"); in isValid()