From 1bad64cbf88c0bf49e36ae6ded6db9e976567ec9 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Fri, 5 Jul 2019 17:07:26 +0200 Subject: [PATCH] :white_check_mark: Update tests --- tests/import/array.c | 2 ++ tests/import/begin_class.c | 2 ++ tests/import/callback.c | 2 ++ tests/import/class_template.c | 2 ++ tests/import/coverage.c | 3 ++- tests/import/empty_union.c | 2 ++ tests/import/enum.c | 2 ++ tests/import/extend_array.c | 3 ++- tests/import/extend_event.c | 3 ++- tests/import/extend_pair.c | 3 ++- tests/import/global_func.c | 2 ++ tests/import/global_var.c | 3 ++- tests/import/invalid_arg.c | 2 ++ tests/import/invalid_array.c | 2 ++ tests/import/invalid_func.c | 2 ++ tests/import/invalid_type1.c | 2 ++ tests/import/invalid_type2.c | 2 ++ tests/import/invalid_type3.c | 2 ++ tests/import/no_import.c | 2 ++ tests/import/op_err.c | 2 ++ tests/import/static_string.c | 3 ++- tests/import/template_arg.c | 2 ++ tests/import/typedef.c | 2 ++ tests/import/union.c | 2 ++ tests/import/variadic.c | 2 ++ 25 files changed, 50 insertions(+), 6 deletions(-) diff --git a/tests/import/array.c b/tests/import/array.c index 635ea3da..2a939954 100644 --- a/tests/import/array.c +++ b/tests/import/array.c @@ -6,6 +6,8 @@ #include "type.h" #include "object.h" #include "instr.h" +#include "gwion.h" +#include "operator.h" #include "import.h" MFUN(test_mfun){} diff --git a/tests/import/begin_class.c b/tests/import/begin_class.c index e521b2ce..f6831cfe 100644 --- a/tests/import/begin_class.c +++ b/tests/import/begin_class.c @@ -6,6 +6,8 @@ #include "type.h" #include "object.h" #include "instr.h" +#include "gwion.h" +#include "operator.h" #include "import.h" MFUN(test_mfun){} diff --git a/tests/import/callback.c b/tests/import/callback.c index 1dfd3cdb..922b571b 100644 --- a/tests/import/callback.c +++ b/tests/import/callback.c @@ -7,6 +7,8 @@ #include "instr.h" #include "object.h" #include "instr.h" +#include "gwion.h" +#include "operator.h" #include "import.h" #include "func.h" diff --git a/tests/import/class_template.c b/tests/import/class_template.c index f1ab7f5d..09ac6c04 100644 --- a/tests/import/class_template.c +++ b/tests/import/class_template.c @@ -6,6 +6,8 @@ #include "type.h" #include "object.h" #include "instr.h" +#include "gwion.h" +#include "operator.h" #include "import.h" static m_int o_map_key; diff --git a/tests/import/coverage.c b/tests/import/coverage.c index 50aaada8..526d7726 100644 --- a/tests/import/coverage.c +++ b/tests/import/coverage.c @@ -7,9 +7,10 @@ #include "type.h" #include "object.h" #include "instr.h" +#include "gwion.h" +#include "operator.h" #include "import.h" #include "gwi.h" -#include "gwion.h" SFUN(coverage_int) { *(m_uint*)RETURN = 0; } SFUN(coverage_float) { *(m_float*)RETURN = 0; } diff --git a/tests/import/empty_union.c b/tests/import/empty_union.c index 37fdfab5..455a717f 100644 --- a/tests/import/empty_union.c +++ b/tests/import/empty_union.c @@ -6,6 +6,8 @@ #include "type.h" #include "object.h" #include "instr.h" +#include "gwion.h" +#include "operator.h" #include "import.h" GWION_IMPORT(empty_union_test) { diff --git a/tests/import/enum.c b/tests/import/enum.c index c50129bf..0804c25d 100644 --- a/tests/import/enum.c +++ b/tests/import/enum.c @@ -6,6 +6,8 @@ #include "type.h" #include "object.h" #include "instr.h" +#include "gwion.h" +#include "operator.h" #include "import.h" GWION_IMPORT(enum_test) { diff --git a/tests/import/extend_array.c b/tests/import/extend_array.c index 21000199..3dc33f6f 100644 --- a/tests/import/extend_array.c +++ b/tests/import/extend_array.c @@ -6,10 +6,11 @@ #include "type.h" #include "instr.h" #include "object.h" -#include "import.h" #include "instr.h" #include "vm.h" #include "gwion.h" +#include "operator.h" +#include "import.h" #include "gwi.h" GWION_IMPORT(extend_array_test) { diff --git a/tests/import/extend_event.c b/tests/import/extend_event.c index ba273475..7fb83d5f 100644 --- a/tests/import/extend_event.c +++ b/tests/import/extend_event.c @@ -7,9 +7,10 @@ #include "instr.h" #include "object.h" #include "instr.h" -#include "import.h" #include "vm.h" #include "gwion.h" +#include "operator.h" +#include "import.h" #include "gwi.h" static CTOR(ev_ctor) { printf(" %p this to test ctor\n", (void*)o); } diff --git a/tests/import/extend_pair.c b/tests/import/extend_pair.c index 02e27f91..ff7b582b 100644 --- a/tests/import/extend_pair.c +++ b/tests/import/extend_pair.c @@ -7,9 +7,10 @@ #include "instr.h" #include "object.h" #include "instr.h" -#include "import.h" #include "vm.h" #include "gwion.h" +#include "operator.h" +#include "import.h" #include "gwi.h" GWION_IMPORT(extend_pair_test) { diff --git a/tests/import/global_func.c b/tests/import/global_func.c index 8bfcbc39..e6883673 100644 --- a/tests/import/global_func.c +++ b/tests/import/global_func.c @@ -6,6 +6,8 @@ #include "type.h" #include "instr.h" #include "object.h" +#include "gwion.h" +#include "operator.h" #include "import.h" #include "instr.h" diff --git a/tests/import/global_var.c b/tests/import/global_var.c index ba04afb8..79d3834d 100644 --- a/tests/import/global_var.c +++ b/tests/import/global_var.c @@ -6,9 +6,10 @@ #include "type.h" #include "object.h" #include "instr.h" +#include "gwion.h" +#include "operator.h" #include "import.h" #include "gwi.h" -#include "gwion.h" GWION_IMPORT(global_var_test) { diff --git a/tests/import/invalid_arg.c b/tests/import/invalid_arg.c index b8178300..815b43b6 100644 --- a/tests/import/invalid_arg.c +++ b/tests/import/invalid_arg.c @@ -6,6 +6,8 @@ #include "type.h" #include "object.h" #include "instr.h" +#include "gwion.h" +#include "operator.h" #include "import.h" static MFUN(test_mfun){} diff --git a/tests/import/invalid_array.c b/tests/import/invalid_array.c index 34880868..d705356d 100644 --- a/tests/import/invalid_array.c +++ b/tests/import/invalid_array.c @@ -6,6 +6,8 @@ #include "type.h" #include "object.h" #include "instr.h" +#include "gwion.h" +#include "operator.h" #include "import.h" static MFUN(test_mfun){} diff --git a/tests/import/invalid_func.c b/tests/import/invalid_func.c index 0eb8530b..66a116d2 100644 --- a/tests/import/invalid_func.c +++ b/tests/import/invalid_func.c @@ -6,6 +6,8 @@ #include "type.h" #include "object.h" #include "instr.h" +#include "gwion.h" +#include "operator.h" #include "import.h" static MFUN(test_mfun){} diff --git a/tests/import/invalid_type1.c b/tests/import/invalid_type1.c index b9e72bde..b27e7179 100644 --- a/tests/import/invalid_type1.c +++ b/tests/import/invalid_type1.c @@ -6,6 +6,8 @@ #include "type.h" #include "object.h" #include "instr.h" +#include "gwion.h" +#include "operator.h" #include "import.h" GWION_IMPORT(invalid_type1_test) { diff --git a/tests/import/invalid_type2.c b/tests/import/invalid_type2.c index 1dc5c8e2..05344079 100644 --- a/tests/import/invalid_type2.c +++ b/tests/import/invalid_type2.c @@ -6,6 +6,8 @@ #include "type.h" #include "object.h" #include "instr.h" +#include "gwion.h" +#include "operator.h" #include "import.h" GWION_IMPORT(invalid_type2_test) { diff --git a/tests/import/invalid_type3.c b/tests/import/invalid_type3.c index 2a207d20..7d4152ef 100644 --- a/tests/import/invalid_type3.c +++ b/tests/import/invalid_type3.c @@ -7,6 +7,8 @@ #include "type.h" #include "object.h" #include "instr.h" +#include "gwion.h" +#include "operator.h" #include "import.h" GWION_IMPORT(invalid_type3_test) { diff --git a/tests/import/no_import.c b/tests/import/no_import.c index 39ff84dc..33e236b7 100644 --- a/tests/import/no_import.c +++ b/tests/import/no_import.c @@ -6,4 +6,6 @@ #include "type.h" #include "object.h" #include "instr.h" +#include "gwion.h" +#include "operator.h" #include "import.h" diff --git a/tests/import/op_err.c b/tests/import/op_err.c index c6b2b987..1005ab86 100644 --- a/tests/import/op_err.c +++ b/tests/import/op_err.c @@ -6,6 +6,8 @@ #include "type.h" #include "object.h" #include "instr.h" +#include "gwion.h" +#include "operator.h" #include "import.h" GWION_IMPORT(op_err_test) { diff --git a/tests/import/static_string.c b/tests/import/static_string.c index 879eb451..850906a7 100644 --- a/tests/import/static_string.c +++ b/tests/import/static_string.c @@ -7,8 +7,9 @@ #include "type.h" #include "object.h" #include "instr.h" -#include "import.h" #include "gwion.h" +#include "operator.h" +#include "import.h" #include "gwi.h" GWION_IMPORT(static_string_test) { diff --git a/tests/import/template_arg.c b/tests/import/template_arg.c index e483910f..11d48265 100644 --- a/tests/import/template_arg.c +++ b/tests/import/template_arg.c @@ -6,6 +6,8 @@ #include "type.h" #include "object.h" #include "instr.h" +#include "gwion.h" +#include "operator.h" #include "import.h" static MFUN(template_arg_fun) {} diff --git a/tests/import/typedef.c b/tests/import/typedef.c index 4d85ad79..82b9f838 100644 --- a/tests/import/typedef.c +++ b/tests/import/typedef.c @@ -6,6 +6,8 @@ #include "type.h" #include "object.h" #include "instr.h" +#include "gwion.h" +#include "operator.h" #include "import.h" static MFUN(test_func) { puts("test"); } diff --git a/tests/import/union.c b/tests/import/union.c index c5216547..50fd4807 100644 --- a/tests/import/union.c +++ b/tests/import/union.c @@ -6,6 +6,8 @@ #include "type.h" #include "object.h" #include "instr.h" +#include "gwion.h" +#include "operator.h" #include "import.h" GWION_IMPORT(union_test) { diff --git a/tests/import/variadic.c b/tests/import/variadic.c index fa9b3cf4..0f25c0f7 100644 --- a/tests/import/variadic.c +++ b/tests/import/variadic.c @@ -6,6 +6,8 @@ #include "type.h" #include "instr.h" #include "object.h" +#include "gwion.h" +#include "operator.h" #include "import.h" #include "vararg.h" -- 2.43.0