From: Jérémie Astor Date: Tue, 30 Jun 2020 19:56:27 +0000 (+0200) Subject: :white_check_mark: remove duplicated test X-Git-Tag: nightly~1463 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=e37c5a517d079481a2cc68fd1436e7a36a510683;p=gwion.git :white_check_mark: remove duplicated test --- diff --git a/tests/new/global_func3.gw b/tests/new/global_func3.gw deleted file mode 100644 index 061dfa3e..00000000 --- a/tests/new/global_func3.gw +++ /dev/null @@ -1,4 +0,0 @@ -<<< int i >>>; -fun global void this_global_func_will_fail_to_compile() { - <<< i >>>; -} diff --git a/tests/new/static_tmpl.gw b/tests/new/static_tmpl.gw deleted file mode 100644 index b024fdd2..00000000 --- a/tests/new/static_tmpl.gw +++ /dev/null @@ -1,14 +0,0 @@ -class global C { - fun static void t<~A~>() { <<< __func__ >>>; } -} -class D extends C { - -} - -fun void test(C c) { - C.t<~int~>(); -} - -#!D d; -#!d.t<~int~>(); -#!d => test; diff --git a/tests/tree/global_func0.gw b/tests/tree/global_func0.gw deleted file mode 100644 index ee373b2e..00000000 --- a/tests/tree/global_func0.gw +++ /dev/null @@ -1,11 +0,0 @@ -123 => global int g_i; -class global C { - 13 => int i; -} -<<< g_i >>>; -global C g_c; -<<< g_c, "->i => ", g_c.i >>>; -fun global void g_test() { <<< g_i >>>; <<< g_c >>>; <<< g_c.i >>>; <<< "test" >>>; } -#!fun global void g_test() { <<< "test" >>>; } -<<< g_test >>>; -<<< g_test() >>>; diff --git a/tests/new/global_func1.gw b/tests/tree/global_func1.gw similarity index 100% rename from tests/new/global_func1.gw rename to tests/tree/global_func1.gw diff --git a/tests/tree/global_func_already_defined.gw b/tests/tree/global_func_already_defined.gw deleted file mode 100644 index 57358f7b..00000000 --- a/tests/tree/global_func_already_defined.gw +++ /dev/null @@ -1,3 +0,0 @@ -#! [contains] global function 'test' already defined for those arguments -fun void test(){} -fun void test(){} diff --git a/tests/tree/invalid_global_class.gw b/tests/tree/invalid_global_class.gw deleted file mode 100644 index a20ed9c0..00000000 --- a/tests/tree/invalid_global_class.gw +++ /dev/null @@ -1,6 +0,0 @@ -#! [contains] 'global' can only be used at class scope -class C { - { - global int i; - } -} diff --git a/tests/tree/invalid_global_file.gw b/tests/tree/invalid_global_file.gw deleted file mode 100644 index c8eeaa35..00000000 --- a/tests/tree/invalid_global_file.gw +++ /dev/null @@ -1,4 +0,0 @@ -#! [contains] 'global' can only be used at file scope -{ -global int i; -} diff --git a/tests/tree/struct_global0.gw b/tests/tree/struct_global0.gw deleted file mode 100644 index 57abb9ed..00000000 --- a/tests/tree/struct_global0.gw +++ /dev/null @@ -1,14 +0,0 @@ -struct global GlobalStruct { - int i; - float f; - string s; -} - -struct global GlobalStructWithCtor { - int i; - float f; - string s; -} - -global GlobalStruct s; -GlobalStructWithCtor sctor;