mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
* list all (non-zero) fields and metrics * filter list by field / metric name * select an operator per field (ignore, equals, contains, larger than, ...) * available in the context menus of activity- and calendar view
24 lines
594 B
C++
24 lines
594 B
C++
#include "Core/Utils.h"
|
|
|
|
#include <QTest>
|
|
|
|
|
|
class TestUtils: public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
private slots:
|
|
void quoteEscapeTest() {
|
|
QCOMPARE(Utils::quoteEscape("abc"), QString("abc"));
|
|
QCOMPARE(Utils::quoteEscape("a\bc"), QString("a\bc"));
|
|
QCOMPARE(Utils::quoteEscape("a\\bc"), QString("a\\bc"));
|
|
QCOMPARE(Utils::quoteEscape("a\"bc"), QString("a\\\"bc"));
|
|
QCOMPARE(Utils::quoteEscape("a\\\"bc"), QString("a\\\"bc"));
|
|
QCOMPARE(Utils::quoteEscape("a\\\\\"bc"), QString("a\\\\\\\"bc"));
|
|
}
|
|
};
|
|
|
|
|
|
QTEST_MAIN(TestUtils)
|
|
#include "testUtils.moc"
|