From: Jérémie Astor Date: Mon, 4 Jan 2021 21:33:50 +0000 (+0100) Subject: :art: Get Rid of typeof tests X-Git-Tag: nightly~1060 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=fe7d2cd09e36496eaf271d65d5300478e703f928;p=gwion.git :art: Get Rid of typeof tests --- diff --git a/examples/typeof.gw b/examples/typeof.gw deleted file mode 100644 index cf4d5195..00000000 --- a/examples/typeof.gw +++ /dev/null @@ -1 +0,0 @@ -<<>>; diff --git a/examples/typeof_array.gw b/examples/typeof_array.gw deleted file mode 100644 index 06f48b69..00000000 --- a/examples/typeof_array.gw +++ /dev/null @@ -1,3 +0,0 @@ -var int i[2]; -<<< typeof(i) >>>; -<<< typeof(1) >>>; diff --git a/examples/typeof_decl.gw b/examples/typeof_decl.gw deleted file mode 100644 index 9be4f594..00000000 --- a/examples/typeof_decl.gw +++ /dev/null @@ -1,2 +0,0 @@ -var int i; -<<< var typeof(i) j>>>; diff --git a/tests/error/typeof_error.gw b/tests/error/typeof_error.gw deleted file mode 100644 index 711db226..00000000 --- a/tests/error/typeof_error.gw +++ /dev/null @@ -1 +0,0 @@ -var typeof( 1 + 2 ) i; diff --git a/tests/fork/fork_call.gw b/tests/fork/fork_call.gw deleted file mode 100644 index 5a121c1b..00000000 --- a/tests/fork/fork_call.gw +++ /dev/null @@ -1,8 +0,0 @@ -fun int test() { - return 12; -} - -fork test() @=> var auto sh; -<<< typeof(sh) >>>; -sh.ev => now; -<<< sh.retval >>>; diff --git a/tests/new/invalid_decl_exp.gw b/tests/new/invalid_decl_exp.gw deleted file mode 100644 index 40dc93ac..00000000 --- a/tests/new/invalid_decl_exp.gw +++ /dev/null @@ -1,2 +0,0 @@ -var typeof(1) i; -<<< i >>>; diff --git a/tests/new/noxid.gw b/tests/new/noxid.gw deleted file mode 100644 index 13c39d40..00000000 --- a/tests/new/noxid.gw +++ /dev/null @@ -1 +0,0 @@ -var typeof(1) i; diff --git a/tests/new/typeof.gw b/tests/new/typeof.gw deleted file mode 100644 index 44e41d89..00000000 --- a/tests/new/typeof.gw +++ /dev/null @@ -1,8 +0,0 @@ -<<< typeof(1) == typeof(2) >>>; -<<< typeof(1) != typeof(2) >>>; -<<< typeof(1) > typeof(2) >>>; -<<< typeof(1) >= typeof(2) >>>; -<<< typeof(1) < typeof(2) >>>; -<<< typeof(1) <= typeof(2) >>>; -<<< typeof(1) == Object >>>; -<<< typeof(1) > Object >>>; diff --git a/tests/new/typeof2.gw b/tests/new/typeof2.gw deleted file mode 100644 index 1e9bd9aa..00000000 --- a/tests/new/typeof2.gw +++ /dev/null @@ -1,2 +0,0 @@ -<<< int >>>; -<<< typeof(1) >= int >>>; diff --git a/tests/new/typeof3.gw b/tests/new/typeof3.gw deleted file mode 100644 index c6ab91bd..00000000 --- a/tests/new/typeof3.gw +++ /dev/null @@ -1,9 +0,0 @@ -class C {} -class D extends C {} -var C c; -var D d; -<<< typeof(c) < typeof(d) >>>; -<<< typeof(c) > typeof(d) >>>; -<<< C < D >>>; -<<< C > D >>>; - diff --git a/tests/tree/check_td_arg.gw b/tests/tree/check_td_arg.gw deleted file mode 100644 index 2fbc7d91..00000000 --- a/tests/tree/check_td_arg.gw +++ /dev/null @@ -1 +0,0 @@ -fun void test(typeof(1) i) {} diff --git a/tests/tree/check_td_array.gw b/tests/tree/check_td_array.gw deleted file mode 100644 index 11ff539d..00000000 --- a/tests/tree/check_td_array.gw +++ /dev/null @@ -1,3 +0,0 @@ -var int array[][][]; -var typeof(array) other_array; -<<< other_array >>>; diff --git a/tests/tree/cpy_ast.gw b/tests/tree/cpy_ast.gw index 39fd87fe..d481961d 100644 --- a/tests/tree/cpy_ast.gw +++ b/tests/tree/cpy_ast.gw @@ -2,7 +2,6 @@ class C:[A] { \a{}; [ 1 ]; var int i,j; - var typeof(i) k; 'a'; true $ int; i++; @@ -10,7 +9,6 @@ class C:[A] { ++i; union U { int i; } union V:[A] { int i; } - typeof(i); if(i) i; else i; for(var int _i; _i < 1; ++_i); var int array[2]; diff --git a/tests/tree/decl_exp_array.gw b/tests/tree/decl_exp_array.gw deleted file mode 100644 index 3d0ca31a..00000000 --- a/tests/tree/decl_exp_array.gw +++ /dev/null @@ -1,2 +0,0 @@ -<<< var typeof( new int[2] ) i >>>; -<<< i >>>; diff --git a/tests/tree/func_check_td.gw b/tests/tree/func_check_td.gw deleted file mode 100644 index d96881dd..00000000 --- a/tests/tree/func_check_td.gw +++ /dev/null @@ -1,2 +0,0 @@ -fun typeof(1) test() {} - diff --git a/tests/tree/undefined.gw b/tests/tree/undefined.gw deleted file mode 100644 index 0cc21886..00000000 --- a/tests/tree/undefined.gw +++ /dev/null @@ -1 +0,0 @@ -var typeof(typeof(1)) i;