File indexing completed on 2024-04-28 11:46:06

0001 /*
0002  *   SPDX-FileCopyrightText: 2009 Petri Damstén <damu@iki.fi>
0003  *
0004  *   SPDX-License-Identifier: LGPL-2.0-or-later
0005  */
0006 
0007 #ifndef CONVERTERTEST_H
0008 #define CONVERTERTEST_H
0009 
0010 #include <QObject>
0011 #include <QTest>
0012 #include <kunitconversion/converter.h>
0013 
0014 using namespace KUnitConversion;
0015 
0016 class ConverterTest : public QObject
0017 {
0018     Q_OBJECT
0019 private Q_SLOTS:
0020     void initTestCase();
0021     void testCategory();
0022     void testUnits();
0023     void testConvert();
0024     void testInvalid();
0025     void testCurrency();
0026     /**
0027      * Checks that conversion tables are updated after timeout
0028      *
0029      * Regression test for https://bugs.kde.org/show_bug.cgi?id=441337
0030      */
0031     void testCurrencyConversionTableUpdate();
0032 };
0033 
0034 #endif // CONVERTERTEST_H