From: fennecdjay Date: Sun, 3 Nov 2019 23:26:23 +0000 (+0100) Subject: :art: Update tests X-Git-Tag: nightly~2116^2~9 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=5fe39f0151a4174c60c06e70563bf6fad2122ce6;p=gwion.git :art: Update tests --- diff --git a/tests/import/class_template.c b/tests/import/class_template.c index 2acbabee..d48a3330 100644 --- a/tests/import/class_template.c +++ b/tests/import/class_template.c @@ -34,7 +34,7 @@ GWION_IMPORT(class_template) { GWI_BB((o_map_key = gwi_item_end(gwi, ae_flag_member | ae_flag_template, NULL))) GWI_BB(gwi_item_ini(gwi, "B[]", "value")) GWI_BB((o_map_value = gwi_item_end(gwi, ae_flag_member, NULL))) - GWI_BB(gwi_func_ini(gwi, "int", "<~C,D~>test")) + GWI_BB(gwi_func_ini(gwi, "int", "test<~C,D~>")) GWI_BB(gwi_func_end(gwi, (f_xfun)1, ae_flag_none)) GWI_BB(gwi_class_end(gwi)) diff --git a/tests/import/class_template_invalid.c b/tests/import/class_template_invalid.c index a6d967aa..677304c9 100644 --- a/tests/import/class_template_invalid.c +++ b/tests/import/class_template_invalid.c @@ -23,7 +23,7 @@ GWION_IMPORT(class_template) { GWI_BB((o_map_key = gwi_item_end(gwi, ae_flag_member | ae_flag_template, NULL))) GWI_BB(gwi_item_ini(gwi, "B[]", "value")) GWI_BB((o_map_value = gwi_item_end(gwi, ae_flag_member, NULL))) - GWI_BB(gwi_func_ini(gwi, "int", "<~C,D'~>test")) + GWI_BB(gwi_func_ini(gwi, "int", "test<~C,D'~>")) GWI_BB(gwi_func_end(gwi, (f_xfun)1, ae_flag_none)) GWI_BB(gwi_class_end(gwi)) diff --git a/tests/import/fptr_tmpl.c b/tests/import/fptr_tmpl.c index a86b5cee..d142ebb7 100644 --- a/tests/import/fptr_tmpl.c +++ b/tests/import/fptr_tmpl.c @@ -14,7 +14,7 @@ GWION_IMPORT(typedef_test) { Type t_func_typedef; GWI_OB((t_func_typedef = gwi_mk_type(gwi, "FuncTypedef", SZ_INT , NULL))) - GWI_BB(gwi_fptr_ini(gwi, "int", "<~A~>test")) + GWI_BB(gwi_fptr_ini(gwi, "int", "test<~A~>")) GWI_OB(gwi_fptr_end(gwi, 0)) return GW_OK; } diff --git a/tests/import/fptr_tmpl_fail.c b/tests/import/fptr_tmpl_fail.c index 03a311ba..13c195fc 100644 --- a/tests/import/fptr_tmpl_fail.c +++ b/tests/import/fptr_tmpl_fail.c @@ -12,7 +12,7 @@ #include "import.h" GWION_IMPORT(typedef_test) { - GWI_BB(gwi_fptr_ini(gwi, "int~", "<~A~>test")) + GWI_BB(gwi_fptr_ini(gwi, "int~", "test<~A~>")) GWI_OB(gwi_fptr_end(gwi, 0)) return GW_OK; } diff --git a/tests/import/func_tmpl.c b/tests/import/func_tmpl.c index 2c1f3d88..be22fbb6 100644 --- a/tests/import/func_tmpl.c +++ b/tests/import/func_tmpl.c @@ -17,7 +17,7 @@ static SFUN(func_tmpl_xfun) { } GWION_IMPORT(func_tmpl) { - GWI_BB(gwi_func_ini(gwi, "int[]", "<~A~>test")) + GWI_BB(gwi_func_ini(gwi, "int[]", "test<~A~>")) GWI_BB(gwi_func_arg(gwi, "A", "i")) GWI_BB(gwi_func_end(gwi, func_tmpl_xfun, ae_flag_none)) return GW_OK; diff --git a/tests/import/func_tmpl_fail.c b/tests/import/func_tmpl_fail.c index fcb89601..5790b326 100644 --- a/tests/import/func_tmpl_fail.c +++ b/tests/import/func_tmpl_fail.c @@ -17,7 +17,7 @@ static SFUN(func_tmpl_xfun) { } GWION_IMPORT(func_tmpl) { - GWI_BB(gwi_func_ini(gwi, "voit", "<~A~>test")) + GWI_BB(gwi_func_ini(gwi, "voit", "test<~A~>")) GWI_BB(gwi_func_end(gwi, func_tmpl_xfun, ae_flag_none)) return GW_OK; } diff --git a/tests/import/union_tmpl.c b/tests/import/union_tmpl.c index 0de2647a..800cf551 100644 --- a/tests/import/union_tmpl.c +++ b/tests/import/union_tmpl.c @@ -12,7 +12,7 @@ #include "import.h" GWION_IMPORT(union_test) { - GWI_BB(gwi_union_ini(gwi, "<~A~>U", NULL)) + GWI_BB(gwi_union_ini(gwi, "U<~A~>", NULL)) GWI_BB(gwi_union_add(gwi,"float", "f")) GWI_BB(gwi_union_add(gwi,"int", "i")) GWI_BB(gwi_union_add(gwi,"A", "a")) diff --git a/tests/import/union_tmpl_fail.c b/tests/import/union_tmpl_fail.c index cebc664e..cf93e12b 100644 --- a/tests/import/union_tmpl_fail.c +++ b/tests/import/union_tmpl_fail.c @@ -12,7 +12,7 @@ #include "import.h" GWION_IMPORT(union_test) { - GWI_BB(gwi_union_ini(gwi, "<~A~>U", "My")) + GWI_BB(gwi_union_ini(gwi, "U<~A~>", "My")) GWI_BB(gwi_union_add(gwi,"float", "f")) GWI_BB(gwi_union_add(gwi,"int", "i")) GWI_BB(gwi_union_add(gwi,"A", "a"))