| 19 | } |
| 20 | |
| 21 | void expectExplicitMhz(const char* label, const QString& text, bool expected) |
| 22 | { |
| 23 | const QString clean = FrequencyEntryParser::normalizedMhzText(text); |
| 24 | const bool actual = FrequencyEntryParser::isExplicitMhzEntry(text, clean); |
| 25 | report(label, |
| 26 | actual == expected, |
| 27 | QStringLiteral("text=%1 clean=%2 actual=%3") |
| 28 | .arg(text, clean) |
| 29 | .arg(actual ? QStringLiteral("true") : QStringLiteral("false")) |
| 30 | .toStdString()); |
| 31 | } |
| 32 | |
| 33 | void expectNormalized(const char* label, const QString& text, const QString& expected) |
| 34 | { |
no test coverage detected