summaryrefslogtreecommitdiff
path: root/source/tests
diff options
context:
space:
mode:
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);
}