From e37c5a517d079481a2cc68fd1436e7a36a510683 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Tue, 30 Jun 2020 21:56:27 +0200 Subject: [PATCH] :white_check_mark: remove duplicated test --- tests/new/global_func3.gw | 4 ---- tests/new/static_tmpl.gw | 14 -------------- tests/tree/global_func0.gw | 11 ----------- tests/{new => tree}/global_func1.gw | 0 tests/tree/global_func_already_defined.gw | 3 --- tests/tree/invalid_global_class.gw | 6 ------ tests/tree/invalid_global_file.gw | 4 ---- tests/tree/struct_global0.gw | 14 -------------- 8 files changed, 56 deletions(-) delete mode 100644 tests/new/global_func3.gw delete mode 100644 tests/new/static_tmpl.gw delete mode 100644 tests/tree/global_func0.gw rename tests/{new => tree}/global_func1.gw (100%) delete mode 100644 tests/tree/global_func_already_defined.gw delete mode 100644 tests/tree/invalid_global_class.gw delete mode 100644 tests/tree/invalid_global_file.gw delete mode 100644 tests/tree/struct_global0.gw 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; -- 2.43.0