From ff5397e5bf9b2d647570f32a974290d8e1c10ad5 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Tue, 17 Jun 2014 14:29:38 -0400 Subject: [PATCH] tests: remove some very-old useless tests Signed-off-by: Jean Privat --- tests/sav/test_accessor.res | 1 - tests/sav/test_array.res | 1 - tests/sav/test_array_int.res | 1 - tests/sav/test_attr.res | 1 - tests/sav/test_attr_long.res | 1 - tests/sav/test_blocks.res | 1 - tests/sav/test_cond.res | 1 - tests/sav/test_meta.res | 1 - tests/sav/test_obj.res | 1 - tests/sav/test_string.res | 2 - tests/test_accessor.nit | 34 ----------------- tests/test_array.nit | 35 ----------------- tests/test_array_int.nit | 26 ------------- tests/test_attr.nit | 31 --------------- tests/test_attr_long.nit | 43 --------------------- tests/test_blocks.nit | 41 -------------------- tests/test_cond.nit | 58 ---------------------------- tests/test_meta.nit | 87 ------------------------------------------ tests/test_obj.nit | 71 ---------------------------------- tests/test_string.nit | 19 --------- 20 files changed, 456 deletions(-) delete mode 100644 tests/sav/test_accessor.res delete mode 100644 tests/sav/test_array.res delete mode 100644 tests/sav/test_array_int.res delete mode 100644 tests/sav/test_attr.res delete mode 100644 tests/sav/test_attr_long.res delete mode 100644 tests/sav/test_blocks.res delete mode 100644 tests/sav/test_cond.res delete mode 100644 tests/sav/test_meta.res delete mode 100644 tests/sav/test_obj.res delete mode 100644 tests/sav/test_string.res delete mode 100644 tests/test_accessor.nit delete mode 100644 tests/test_array.nit delete mode 100644 tests/test_array_int.nit delete mode 100644 tests/test_attr.nit delete mode 100644 tests/test_attr_long.nit delete mode 100644 tests/test_blocks.nit delete mode 100644 tests/test_cond.nit delete mode 100644 tests/test_meta.nit delete mode 100644 tests/test_obj.nit delete mode 100644 tests/test_string.nit diff --git a/tests/sav/test_accessor.res b/tests/sav/test_accessor.res deleted file mode 100644 index ea889b9..0000000 --- a/tests/sav/test_accessor.res +++ /dev/null @@ -1 +0,0 @@ -p: 5q: 67 \ No newline at end of file diff --git a/tests/sav/test_array.res b/tests/sav/test_array.res deleted file mode 100644 index 2bfea71..0000000 --- a/tests/sav/test_array.res +++ /dev/null @@ -1 +0,0 @@ -2**0*1* \ No newline at end of file diff --git a/tests/sav/test_array_int.res b/tests/sav/test_array_int.res deleted file mode 100644 index 1a4284d..0000000 --- a/tests/sav/test_array_int.res +++ /dev/null @@ -1 +0,0 @@ -2530513 \ No newline at end of file diff --git a/tests/sav/test_attr.res b/tests/sav/test_attr.res deleted file mode 100644 index 8dfe4ff..0000000 --- a/tests/sav/test_attr.res +++ /dev/null @@ -1 +0,0 @@ -55125012 \ No newline at end of file diff --git a/tests/sav/test_attr_long.res b/tests/sav/test_attr_long.res deleted file mode 100644 index efb4310..0000000 --- a/tests/sav/test_attr_long.res +++ /dev/null @@ -1 +0,0 @@ -0010110010 \ No newline at end of file diff --git a/tests/sav/test_blocks.res b/tests/sav/test_blocks.res deleted file mode 100644 index f54df58..0000000 --- a/tests/sav/test_blocks.res +++ /dev/null @@ -1 +0,0 @@ -012345 \ No newline at end of file diff --git a/tests/sav/test_cond.res b/tests/sav/test_cond.res deleted file mode 100644 index 56b6510..0000000 --- a/tests/sav/test_cond.res +++ /dev/null @@ -1 +0,0 @@ -11111 \ No newline at end of file diff --git a/tests/sav/test_meta.res b/tests/sav/test_meta.res deleted file mode 100644 index 67b0910..0000000 --- a/tests/sav/test_meta.res +++ /dev/null @@ -1 +0,0 @@ -D34=578 \ No newline at end of file diff --git a/tests/sav/test_obj.res b/tests/sav/test_obj.res deleted file mode 100644 index 6527f27..0000000 --- a/tests/sav/test_obj.res +++ /dev/null @@ -1 +0,0 @@ -11211221122132 \ No newline at end of file diff --git a/tests/sav/test_string.res b/tests/sav/test_string.res deleted file mode 100644 index 5769d17..0000000 --- a/tests/sav/test_string.res +++ /dev/null @@ -1,2 +0,0 @@ -abcdefghijklnmopqrstuvwxyz -#"\ \ No newline at end of file diff --git a/tests/test_accessor.nit b/tests/test_accessor.nit deleted file mode 100644 index e83de63..0000000 --- a/tests/test_accessor.nit +++ /dev/null @@ -1,34 +0,0 @@ -# This file is part of NIT ( http://www.nitlanguage.org ). -# -# Copyright 2004-2008 Jean Privat -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -class A - fun p=(i: Int) - do - printn("p: ", i) - end - fun q=(i: Int, j: Int) - do - printn("q: ", i, j) - end - - init - do - end -end - -var a = new A -a.p = 5 -a.q(6) = 7 diff --git a/tests/test_array.nit b/tests/test_array.nit deleted file mode 100644 index fcce3bb..0000000 --- a/tests/test_array.nit +++ /dev/null @@ -1,35 +0,0 @@ -# This file is part of NIT ( http://www.nitlanguage.org ). -# -# Copyright 2004-2008 Jean Privat -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - - -class Ant - redef fun to_s: String - do - return "*" - end - - init do end -end - -var t = [new Ant, new Ant] -printn(t.length) -printn(t) -var i = 0 -while i < t.length do - printn(i) - printn(t[i]) - i = i + 1 -end diff --git a/tests/test_array_int.nit b/tests/test_array_int.nit deleted file mode 100644 index 0719bbb..0000000 --- a/tests/test_array_int.nit +++ /dev/null @@ -1,26 +0,0 @@ -# This file is part of NIT ( http://www.nitlanguage.org ). -# -# Copyright 2004-2008 Jean Privat -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - - - var t = [5,3] - printn(t.length) - printn(t) - var i = 0 - while i < t.length do - printn(i) - printn(t[i]) - i = i + 1 - end diff --git a/tests/test_attr.nit b/tests/test_attr.nit deleted file mode 100644 index d667658..0000000 --- a/tests/test_attr.nit +++ /dev/null @@ -1,31 +0,0 @@ -# This file is part of NIT ( http://www.nitlanguage.org ). -# -# Copyright 2004-2008 Jean Privat -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -redef class Sys - var _i: Int = 0 - var _j: Int = 0 - redef fun main - do - printn(5) - _i = 5 - printn(_i) - _i = 12 - printn(_i) - _j = 50 - printn(_j) - printn(_i) - end -end diff --git a/tests/test_attr_long.nit b/tests/test_attr_long.nit deleted file mode 100644 index 1444e23..0000000 --- a/tests/test_attr_long.nit +++ /dev/null @@ -1,43 +0,0 @@ -# This file is part of NIT ( http://www.nitlanguage.org ). -# -# Copyright 2004-2008 Jean Privat -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -class A - var _a_: Int = 0 - - fun a: Int - do - return _a_ * 10 - end - - fun a=(a: Int) - do - _a_ = a / 10 - end - - - - init - do - end -end - - -var a = new A -printn(a.a, a._a_) -a.a = 10 -printn(a.a, a._a_) -a._a_ = 10 -printn(a.a, a._a_) diff --git a/tests/test_blocks.nit b/tests/test_blocks.nit deleted file mode 100644 index ce22835..0000000 --- a/tests/test_blocks.nit +++ /dev/null @@ -1,41 +0,0 @@ -# This file is part of NIT ( http://www.nitlanguage.org ). -# -# Copyright 2004-2008 Jean Privat -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - - - do - printn(0) - end - var a = 1 - do - printn(a) - end - var b = 2 - while b < 3 do - printn(b) - b = b + 1 - end - var c = 3 - while c < 4 do - printn(c) - c = c + 1 - end - var d = 4 - var e = 2 - while e > 0 do - printn(d) - d = d + 1 - e = e - 1 - end diff --git a/tests/test_cond.nit b/tests/test_cond.nit deleted file mode 100644 index 3246b45..0000000 --- a/tests/test_cond.nit +++ /dev/null @@ -1,58 +0,0 @@ -# This file is part of NIT ( http://www.nitlanguage.org ). -# -# Copyright 2004-2008 Jean Privat -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -var a = true -var b = false - -if true then - printn(1) -else if false then - printn(0) -else if true then - printn(0) -else - printn(0) -end - -if false then - printn(0) -else if false then - printn(0) -else if true then - printn(1) -else - printn(0) -end - -if false then - printn(0) -else if false then - printn(0) -else - printn(1) -end - -if a then - printn(1) -else - printn(0) -end - -if b then - printn(0) -else - printn(1) -end diff --git a/tests/test_meta.nit b/tests/test_meta.nit deleted file mode 100644 index b649f99..0000000 --- a/tests/test_meta.nit +++ /dev/null @@ -1,87 +0,0 @@ -# This file is part of NIT ( http://www.nitlanguage.org ). -# -# Copyright 2004-2008 Jean Privat -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - - -class A - fun foo - do - printn("A") - end - fun blup(a: Int) - do - blup2(a, 1) - end - fun blup2(a: Int, b : Int) - do - printn(a+b) - end - fun blop(a: Int, b: Int...) - do - var i = b.iterator - while i.is_ok do - printn(a+i.item) - i.next - end - end -end - -class B - super A - redef fun foo - do - printn("B") - end -end - -class C - super A - fun foo2 - do - printn("C") - end -end - -class D - super B - super C - redef fun foo - do - printn("D") - end - - init do end -end - -fun test1 -do - var b: B - b = new D - b.foo - b.blup2(1,2) - b.blup(3) -end - -fun test2 -do - var b = new D - var a = [1,2,3] - var u: Object - printn("=",5) - b.blop(5,2,3) -end - -test1 -test2 diff --git a/tests/test_obj.nit b/tests/test_obj.nit deleted file mode 100644 index f4a430b..0000000 --- a/tests/test_obj.nit +++ /dev/null @@ -1,71 +0,0 @@ -# This file is part of NIT ( http://www.nitlanguage.org ). -# -# Copyright 2004-2008 Jean Privat -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - - -class O - fun foo - do - printn(10) - end - - fun bar - do - printn(20) - end - - init do end -end - -class A - super O - redef fun foo - do - printn(11) - end - - redef fun bar - do - printn(21) - end - - init do end -end - -class B - super A - redef fun foo - do - printn(12) - end - - fun baz - do - printn(32) - end - - init do end -end - -var a = new A -var ab: A = new B -var b = new B -a.foo -a.bar -ab.foo -ab.bar -b.foo -b.bar -b.baz diff --git a/tests/test_string.nit b/tests/test_string.nit deleted file mode 100644 index c76b0b3..0000000 --- a/tests/test_string.nit +++ /dev/null @@ -1,19 +0,0 @@ -# This file is part of NIT ( http://www.nitlanguage.org ). -# -# Copyright 2004-2008 Jean Privat -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - - -printn("abcdefghijklnmopqrstuvwxyz") -printn("\n#\"\\") -- 1.7.9.5