aboutsummaryrefslogtreecommitdiff
path: root/test/core.c
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2019-01-03 22:29:52 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2019-01-03 22:29:52 +0100
commite0d726462529a55bc6971afc2166b5b3c5bbbd5c (patch)
treeaa9c36143d92c0a02888a783e8db2eaee0323f34 /test/core.c
parentaca3e674cab6672d0b307816baf56fa0fbafe4ae (diff)
downloadd2tk-e0d726462529a55bc6971afc2166b5b3c5bbbd5c.tar.xz
test: add d2tk_point_t test.
Diffstat (limited to 'test/core.c')
-rw-r--r--test/core.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/core.c b/test/core.c
index 2aa3e1e..6fbefd4 100644
--- a/test/core.c
+++ b/test/core.c
@@ -145,6 +145,15 @@ _test_rect_shrink()
assert(dst.h == 4 - 2*1);
}
+static void
+_test_point()
+{
+ // initialization
+ const d2tk_point_t src = D2TK_POINT(11, 22);
+ assert(src.x == 11);
+ assert(src.y == 22);
+}
+
#define DIM_W 640
#define DIM_H 480
@@ -1195,6 +1204,7 @@ int
main(int argc __attribute__((unused)), char **argv __attribute__((unused)))
{
_test_rect_shrink();
+ _test_point();
_test_dimensions();
_test_bg_color();