File indexing completed on 2025-01-19 03:57:45
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2010-02-07 0007 * Description : test for the simple datatypes and helper functions 0008 * 0009 * SPDX-FileCopyrightText: 2010-2013 by Michael G. Hansen <mike at mghansen dot de> 0010 * 0011 * SPDX-License-Identifier: GPL-2.0-or-later 0012 * 0013 * ============================================================ */ 0014 0015 #ifndef DIGIKAM_PRIMITIVES_UTEST_H 0016 #define DIGIKAM_PRIMITIVES_UTEST_H 0017 0018 // Qt includes 0019 0020 #include <QTest> 0021 0022 class TestPrimitives : public QObject 0023 { 0024 Q_OBJECT 0025 0026 public: 0027 0028 explicit TestPrimitives(QObject* const parent = nullptr) 0029 : QObject(parent) 0030 { 0031 } 0032 0033 private Q_SLOTS: 0034 0035 void testNoOp(); 0036 void testParseLatLonString(); 0037 void testParseXYStringToPoint(); 0038 void testParseBoundsString(); 0039 void testNormalizeBounds_data(); 0040 void testNormalizeBounds(); 0041 void testGroupStateComputer(); 0042 }; 0043 0044 #endif // DIGIKAM_PRIMITIVES_UTEST_H