diff options
author | Adam NAILI | 2017-12-10 18:39:27 +0100 |
---|---|---|
committer | Adam NAILI | 2017-12-10 18:41:38 +0100 |
commit | bd3864dda0ca20a2d234bda525e6cd7c21d4f729 (patch) | |
tree | e34ee8dc7312918d19d7103c77080c277083f33d /test | |
parent | 8ad5554529a9f1a6d128582af5aec13c792f0932 (diff) | |
download | morpher-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.c | 13 |
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 @@ | |||
1 | static void test_window(){ | 1 | #include "gui/window.h" |
2 | #include "MLV/MLV_all.h" | ||
2 | 3 | ||
4 | static 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 | } |
4 | int main(){ | 11 | |
12 | int main() { | ||
13 | test_window(); | ||
5 | return 0; | 14 | return 0; |
6 | } \ No newline at end of file | 15 | } \ No newline at end of file |