summaryrefslogtreecommitdiff
path: root/source/tests
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-09-12 03:32:35 +0200
committerMitya Selivanov <automainint@guattari.tech>2023-09-12 03:32:35 +0200
commitf0e738028819ac988dbd825cf1962188c9e5cdc3 (patch)
treee7876388cbe6771ddbfe22841a51bf704f864137 /source/tests
parent503219af891858cba983d9b2ecd22ca50498001f (diff)
downloadkit-f0e738028819ac988dbd825cf1962188c9e5cdc3.zip
cleanup
Diffstat (limited to 'source/tests')
-rw-r--r--source/tests/bigint.test.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/tests/bigint.test.c b/source/tests/bigint.test.c
index 94fd9ef..3e55c39 100644
--- a/source/tests/bigint.test.c
+++ b/source/tests/bigint.test.c
@@ -5,6 +5,14 @@
#include "../kit/kit_test.h"
TEST("bigint size check") {
+ REQUIRE_EQ(sizeof(u8), 1);
+ REQUIRE_EQ(sizeof(u16), 2);
+ REQUIRE_EQ(sizeof(u32), 4);
+ REQUIRE_EQ(sizeof(u64), 8);
+ REQUIRE_EQ(sizeof(i8), 1);
+ REQUIRE_EQ(sizeof(i16), 2);
+ REQUIRE_EQ(sizeof(i32), 4);
+ REQUIRE_EQ(sizeof(i64), 8);
REQUIRE_EQ(sizeof(bigint_t), 256);
}