]> Nishi Git Mirror - gwion.git/commitdiff
:white_check_mark: remove duplicated test
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Tue, 30 Jun 2020 19:56:27 +0000 (21:56 +0200)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Tue, 30 Jun 2020 20:47:02 +0000 (22:47 +0200)
tests/new/global_func3.gw [deleted file]
tests/new/static_tmpl.gw [deleted file]
tests/tree/global_func0.gw [deleted file]
tests/tree/global_func1.gw [moved from tests/new/global_func1.gw with 100% similarity]
tests/tree/global_func_already_defined.gw [deleted file]
tests/tree/invalid_global_class.gw [deleted file]
tests/tree/invalid_global_file.gw [deleted file]
tests/tree/struct_global0.gw [deleted file]

diff --git a/tests/new/global_func3.gw b/tests/new/global_func3.gw
deleted file mode 100644 (file)
index 061dfa3..0000000
+++ /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 (file)
index b024fdd..0000000
+++ /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 (file)
index ee373b2..0000000
+++ /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/tree/global_func_already_defined.gw b/tests/tree/global_func_already_defined.gw
deleted file mode 100644 (file)
index 57358f7..0000000
+++ /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 (file)
index a20ed9c..0000000
+++ /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 (file)
index c8eeaa3..0000000
+++ /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 (file)
index 57abb9e..0000000
+++ /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;