summaryrefslogtreecommitdiff
path: root/asl/tests/integers_tests.cpp
diff options
context:
space:
mode:
authorSteven Le Rouzic <steven.lerouzic@gmail.com>2024-10-16 22:54:34 +0200
committerSteven Le Rouzic <steven.lerouzic@gmail.com>2024-12-20 15:35:58 +0100
commit8c95db33be58a545dd2e030428bded0bd958c4b6 (patch)
treeb78809fae2cec5eb2b9513b4960bfbbd697f3871 /asl/tests/integers_tests.cpp
parent7193114b152d3a5b714a22f54ed89950c0ba9aba (diff)
Start work on the testing framework
Diffstat (limited to 'asl/tests/integers_tests.cpp')
-rw-r--r--asl/tests/integers_tests.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/asl/tests/integers_tests.cpp b/asl/tests/integers_tests.cpp
new file mode 100644
index 0000000..d15168e
--- /dev/null
+++ b/asl/tests/integers_tests.cpp
@@ -0,0 +1,11 @@
+#include "asl/integers.hpp"
+
+static_assert(sizeof(int8_t) == 1);
+static_assert(sizeof(int16_t) == 2);
+static_assert(sizeof(int32_t) == 4);
+static_assert(sizeof(int64_t) == 8);
+
+static_assert(sizeof(uint8_t) == 1);
+static_assert(sizeof(uint16_t) == 2);
+static_assert(sizeof(uint32_t) == 4);
+static_assert(sizeof(uint64_t) == 8);