Files
pilotclient/tests/blackmisc/teststringutils.h
Klaus Basan 183280fa75 Ref T308, using an optimized (faster) function for YYYYmmdd string parsing
Ref T309, found that QDateTime::fromString returns a QDateTime object with local timestamp. Using a optimized version returns UTC objects now.

- The bug was found writing a unit test for Ref T308
- Slack: https://swift-project.slack.com/archives/G7GD2UP9C/p1534848725000100
2018-08-22 12:31:53 +02:00

45 lines
1.0 KiB
C++

/* Copyright (C) 2014
* swift project community / contributors
*
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
* including this file, may be copied, modified, propagated, or distributed except according to the terms
* contained in the LICENSE file.
*/
#ifndef BLACKMISCTEST_TESTSTRINGUTILS_H
#define BLACKMISCTEST_TESTSTRINGUTILS_H
//! \cond PRIVATE_TESTS
/*!
* \file
* \ingroup testblackmisc
*/
#include <QObject>
namespace BlackMiscTest
{
//! Testing string utilities
class CTestStringUtils : public QObject
{
Q_OBJECT
public:
//! Constructor
explicit CTestStringUtils(QObject *parent = nullptr) : QObject(parent) {}
private slots:
void testRemove();
void testContains();
void testIndexOf();
void testSplit();
void testTimestampParsing();
};
}
//! \endcond
#endif