File indexing completed on 2024-05-12 16:35:55
0001 /* This file is part of the KDE project 0002 Copyright 2006 Ariya Hidayat <ariya@kde.org> 0003 Copyright 2007 Sascha Pfau <MrPeacock@gmail.com> 0004 0005 This library is free software; you can redistribute it and/or 0006 modify it under the terms of the GNU Library General Public 0007 License as published by the Free Software Foundation; only 0008 version 2 of the License. 0009 0010 This library is distributed in the hope that it will be useful, 0011 but WITHOUT ANY WARRANTY; without even the implied warranty of 0012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0013 Library General Public License for more details. 0014 0015 You should have received a copy of the GNU Library General Public License 0016 along with this library; see the file COPYING.LIB. If not, write to 0017 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0018 Boston, MA 02110-1301, USA. 0019 */ 0020 0021 #ifndef CALLIGRA_SHEETS_TEST_FINANCIAL_FUNCTIONS 0022 #define CALLIGRA_SHEETS_TEST_FINANCIAL_FUNCTIONS 0023 0024 #include <QObject> 0025 0026 #include <Value.h> 0027 0028 namespace Calligra 0029 { 0030 namespace Sheets 0031 { 0032 0033 class TestFinancialFunctions: public QObject 0034 { 0035 Q_OBJECT 0036 0037 private Q_SLOTS: 0038 void initTestCase(); 0039 void testACCRINT(); 0040 void testACCRINTM(); 0041 void testAMORDEGRC(); 0042 void testAMORLINC(); 0043 void testCOMPOUND(); // no ODF tests available 0044 void testCONTINUOUS(); // no ODF tests available 0045 void testCOUPDAYBS(); 0046 void testCOUPDAYS(); 0047 void testCOUPDAYSNC(); 0048 void testCOUPNCD(); 0049 void testCOUPNUM(); 0050 void testCOUPPCD(); 0051 void testCUMIPMT(); 0052 void testCUMPRINC(); 0053 void testDB(); 0054 void testDDB(); 0055 void testDISC(); 0056 void testDOLLARDE(); 0057 void testDOLLARFR(); 0058 void testDURATION(); 0059 void testDURATION_ADD(); // excel 0060 void testEFFECT(); 0061 void testEURO(); 0062 void testEUROCONVERT(); 0063 void testFV(); 0064 // void testFV_ANNUITY(); // k 0065 void testFVSCHEDULE(); 0066 void testINTRATE(); 0067 void testIPMT(); 0068 // void testIRR(); // to be implemented 0069 void testISPMT(); 0070 void testLEVELCOUPON(); 0071 void testMDURATION(); 0072 void testMIRR(); 0073 void testNOMINAL(); 0074 void testNPER(); 0075 void testNPV(); 0076 // void testODDFPRICE(); // to be implemented 0077 // void testODDFYIELD(); // to be implemented 0078 void testODDLPRICE(); 0079 void testODDLYIELD(); 0080 void testPDURATION(); 0081 void testPMT(); 0082 void testPPMT(); 0083 // void testPRICE(); // to be implemented 0084 // void testPRICEDISC(); // to be implemented 0085 void testPRICEMAT(); 0086 void testPV(); 0087 void testPV_ANNUITY(); // no ODF test available 0088 void testRATE(); 0089 void testRECEIVED(); 0090 void testRRI(); 0091 void testSLN(); 0092 void testSYD(); 0093 void testTBILLEQ(); 0094 void testTBILLPRICE(); 0095 void testTBILLYIELD(); 0096 void testVDB(); 0097 void testXIRR(); 0098 void testXNPV(); 0099 // void testYIELD(); // to be implemented 0100 void testYIELDDISC(); 0101 void testYIELDMAT(); 0102 void testZEROCOUPON(); 0103 0104 // private: 0105 // Value evaluate(const QString&); 0106 // Value evaluateShort(const QString&); 0107 }; 0108 0109 } // namespace Sheets 0110 } // namespace Calligra 0111 0112 #endif // CALLIGRA_SHEETS_TEST_FINANCIAL_FUNCTIONS