summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test-BigInt.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/test-BigInt.cc b/tests/test-BigInt.cc
new file mode 100644
index 0000000..df69e64
--- /dev/null
+++ b/tests/test-BigInt.cc
@@ -0,0 +1,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.");
+}