summaryrefslogtreecommitdiff
path: root/tests/test-BigInt.cc
blob: df69e64f4a7bf6bd79e25a9de34b323950d6861a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <Main.h>
#include <BigInt.h>

using namespace Balau;

void MainTask::Do() {
    Printer::log(M_STATUS, "Test::BigInt running.");

    {
        BigInt a, b;
        uint64_t t = 10000000000000000000;
        String s =  "10000000000000000000";
        a.set(t);
        b.set(s);
        TAssert(a == b);
        TAssert(a.toString() == s);
    }

    Printer::log(M_STATUS, "Test::BigInt passed.");
}