summaryrefslogtreecommitdiff
path: root/source/test/unittests/bigint.test.c
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2022-12-29 07:51:16 +0100
committerMitya Selivanov <automainint@guattari.tech>2022-12-29 07:51:16 +0100
commit7e6b36bc2d332a3cb66b83116a393ac4728236d5 (patch)
tree4e7255b1237564f9682cb8e1b84a5bc0c0a4fbef /source/test/unittests/bigint.test.c
parentf9df8ec356b1e18bf46c9a35bec78ed025107376 (diff)
downloadkit-7e6b36bc2d332a3cb66b83116a393ac4728236d5.zip
Improve C89/90 compat
Diffstat (limited to 'source/test/unittests/bigint.test.c')
-rw-r--r--source/test/unittests/bigint.test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/test/unittests/bigint.test.c b/source/test/unittests/bigint.test.c
index 048bcca..260b0ec 100644
--- a/source/test/unittests/bigint.test.c
+++ b/source/test/unittests/bigint.test.c
@@ -4,7 +4,9 @@
#define KIT_TEST_FILE bigint
#include "../../kit_test/test.h"
+#if __STDC_VERSION__ >= 199901L
static_assert(sizeof(bigint_t) == 256, "KIT_BIGINT_SIZE check");
+#endif
TEST("bigint bin hex") {
REQUIRE(bi_equal(HEX("10"), BIN("10000")));
@@ -77,7 +79,6 @@ TEST("bigint div") {
REQUIRE(bi_equal(bi_div(bi_int32(3), bi_int32(-4)).remainder,
bi_int32(3)));
-
REQUIRE(
bi_equal(bi_div(HEX("100"), HEX("10")).quotient, HEX("10")));