summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAdam NAILI2017-12-10 18:39:27 +0100
committerAdam NAILI2017-12-10 18:41:38 +0100
commitbd3864dda0ca20a2d234bda525e6cd7c21d4f729 (patch)
treee34ee8dc7312918d19d7103c77080c277083f33d /test
parent8ad5554529a9f1a6d128582af5aec13c792f0932 (diff)
downloadmorpher-bd3864dda0ca20a2d234bda525e6cd7c21d4f729.tar.gz
Modification of the implementation of init, free and successful test for the init function (creation of a window with the right parameters)
Diffstat (limited to 'test')
-rw-r--r--test/gui/window.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/test/gui/window.c b/test/gui/window.c
index 2e7e0cb..e3b062a 100644
--- a/test/gui/window.c
+++ b/test/gui/window.c
@@ -1,6 +1,15 @@
1static void test_window(){ 1#include "gui/window.h"
2#include "MLV/MLV_all.h"
2 3
4static void test_window() {
5 Window window;
6 window_init(&window, 1000, 512, "Coucou");
7 window_create(&window);
8 MLV_wait_seconds(150);
9 window_free(&window);
3} 10}
4int main(){ 11
12int main() {
13 test_window();
5 return 0; 14 return 0;
6} \ No newline at end of file 15} \ No newline at end of file