knowL: Knowledge Libraries
Loading...
Searching...
No Matches
knowl
src
knowCore
tests
TestBigNumber.h
1
#include <QtTest/QtTest>
2
3
#include "../BigNumber.h"
4
5
class
TestBigNumber
:
public
QObject
6
{
7
Q_OBJECT
8
using
BigNumber
=
knowCore::BigNumber
;
9
private
slots:
10
void
testCreation();
11
void
testNaN();
12
void
testVariant();
13
void
testString();
14
void
testList();
15
void
testOperators();
16
void
testOverflow();
17
void
testInfinity();
18
void
testTruncate();
19
private
:
20
void
do_test(qint16 weight, BigNumber::Sign sign, qint16 dscale,
const
QList<quint16>
& digits,
21
bool
has_int64, qint64 _int64,
22
bool
has_uint64, quint64 _uint64,
23
bool
has_double,
double
_double,
24
const
QString& _string);
25
};
QList
Definition
Forward.h:12
TestBigNumber
Definition
TestBigNumber.h:6
knowCore::BigNumber
Class that can contains large numeric value.
Definition
BigNumber.h:46
Generated by
1.12.0