~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to kspread/tests/TestMathFunctions.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-09-21 15:36:35 UTC
  • mfrom: (1.4.1 upstream) (60.2.11 maverick)
  • Revision ID: james.westby@ubuntu.com-20100921153635-6tejqkiro2u21ydi
Tags: 1:2.2.2-0ubuntu3
Add kubuntu_03_fix-crash-on-closing-sqlite-connection-2.2.2.diff and
kubuntu_04_support-large-memo-values-for-msaccess-2.2.2.diff as
recommended by upstream http://kexi-
project.org/wiki/wikiview/index.php@Kexi2.2_Patches.html#sqlite_stab
ility

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
class TestMathFunctions: public QObject
34
34
{
35
 
Q_OBJECT
 
35
    Q_OBJECT
36
36
 
37
37
private slots:
38
38
 
39
 
  void initTestCase();
40
 
  void cleanupTestCase();
 
39
    void initTestCase();
 
40
    void cleanupTestCase();
41
41
 
42
 
  void testABS();
43
 
  void testACOS();
44
 
  void testACOSH();
45
 
  void testACOT();
46
 
  void testACOTH();
47
 
  void testASIN();
48
 
  void testASINH();
49
 
  void testATAN();
50
 
  void testATAN2();
51
 
  void testATANH();
52
 
  void testBESSELI();
53
 
  void testBESSELJ();
54
 
  void testBESSELK();
55
 
  void testBESSELY();
56
 
  void testCOMBIN();
57
 
  void testCOMBINA(); // to be implemented
58
 
  void testCONVERT();
59
 
  void testCEIL();
60
 
  void testCEILING();
61
 
  void testCOT();
62
 
  void testCOTH();
63
 
  void testDEGREES();
64
 
  void testDELTA();
 
42
    void testABS();
 
43
    void testACOS();
 
44
    void testACOSH();
 
45
    void testACOT();
 
46
    void testACOTH();
 
47
    void testASIN();
 
48
    void testASINH();
 
49
    void testATAN();
 
50
    void testATAN2();
 
51
    void testATANH();
 
52
    void testBESSELI();
 
53
    void testBESSELJ();
 
54
    void testBESSELK();
 
55
    void testBESSELY();
 
56
    void testCOMBIN();
 
57
    void testCOMBINA(); // to be implemented
 
58
    void testCONVERT();
 
59
    void testCEIL();
 
60
    void testCEILING();
 
61
    void testCOT();
 
62
    void testCOTH();
 
63
    void testDEGREES();
 
64
    void testDELTA();
65
65
//   void testERF();  -> TestEngineering
66
66
//   void testERFC(); -> TestEngineering
67
 
  void testEVEN();
68
 
  void testEXP();
69
 
  void testFACT();
70
 
  void testFACTDOUBLE();
71
 
  void testFIB();
72
 
  void testFLOOR();
73
 
  void testGAMMA();
74
 
  void testGAMMALN();
75
 
  void testGCD();
76
 
  void testGESTEP();
77
 
  void testINT();
78
 
  void testLCM();
79
 
  void testLN();
80
 
  void testLOG();
81
 
  void testLOG10();
82
 
  void testMDETERM();
83
 
  void testMINVERSE();
84
 
  void testMMULT();
85
 
  void testMOD();
86
 
  void testMROUND();
 
67
    void testEVEN();
 
68
    void testEXP();
 
69
    void testFACT();
 
70
    void testFACTDOUBLE();
 
71
    void testFIB();
 
72
    void testFLOOR();
 
73
    void testGAMMA();
 
74
    void testGAMMALN();
 
75
    void testGCD();
 
76
    void testGESTEP();
 
77
    void testINT();
 
78
    void testLCM();
 
79
    void testLN();
 
80
    void testLOG();
 
81
    void testLOG10();
 
82
    void testMDETERM();
 
83
    void testMINVERSE();
 
84
    void testMMULT();
 
85
    void testMOD();
 
86
    void testMROUND();
87
87
//   void testMULTINOMINAL();
88
 
  void testMUNIT();
89
 
  void testODD();
 
88
    void testMUNIT();
 
89
    void testODD();
90
90
//   void testPI(); -> TestEngineering
91
 
  void testPOWER();
92
 
  void testPRODUCT();
93
 
  void testQUOTIENT();
94
 
  void testRADIANS();
95
 
  void testRAND();
96
 
  void testRANDBETWEEN();
97
 
  void testROUND();
98
 
  void testROUNDDOWN();
99
 
  void testROUNDUP();
100
 
  void testSERIESSUM();
101
 
  void testSIGN();
102
 
  void testSQRT();
103
 
  void testSQRTPI();
104
 
  void testSUBTOTAL();
105
 
  void testSUMA();
106
 
  void testSUMIF();
107
 
  void testSUMSQ();
108
 
  void testTRUNC();
 
91
    void testPOWER();
 
92
    void testPRODUCT();
 
93
    void testQUOTIENT();
 
94
    void testRADIANS();
 
95
    void testRAND();
 
96
    void testRANDBETWEEN();
 
97
    void testROUND();
 
98
    void testROUNDDOWN();
 
99
    void testROUNDUP();
 
100
    void testSERIESSUM();
 
101
    void testSIGN();
 
102
    void testSQRT();
 
103
    void testSQRTPI();
 
104
    void testSUBTOTAL();
 
105
    void testSUMA();
 
106
    void testSUMIF();
 
107
    void testSUMSQ();
 
108
    void testTRUNC();
109
109
 
110
110
private:
111
 
  Value TestDouble(const QString& formula, const Value& v2, int accuracy);
112
 
  Value evaluate(const QString&);
 
111
    Value TestDouble(const QString& formula, const Value& v2, int accuracy);
 
112
    Value evaluate(const QString&);
113
113
 
114
 
  Doc* m_doc;
 
114
    Doc* m_doc;
115
115
};
116
116
 
117
117
} // namespace KSpread