tests: remove some very-old useless tests
authorJean Privat <jean@pryen.org>
Tue, 17 Jun 2014 18:29:38 +0000 (14:29 -0400)
committerJean Privat <jean@pryen.org>
Wed, 18 Jun 2014 19:02:39 +0000 (15:02 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

20 files changed:
tests/sav/test_accessor.res [deleted file]
tests/sav/test_array.res [deleted file]
tests/sav/test_array_int.res [deleted file]
tests/sav/test_attr.res [deleted file]
tests/sav/test_attr_long.res [deleted file]
tests/sav/test_blocks.res [deleted file]
tests/sav/test_cond.res [deleted file]
tests/sav/test_meta.res [deleted file]
tests/sav/test_obj.res [deleted file]
tests/sav/test_string.res [deleted file]
tests/test_accessor.nit [deleted file]
tests/test_array.nit [deleted file]
tests/test_array_int.nit [deleted file]
tests/test_attr.nit [deleted file]
tests/test_attr_long.nit [deleted file]
tests/test_blocks.nit [deleted file]
tests/test_cond.nit [deleted file]
tests/test_meta.nit [deleted file]
tests/test_obj.nit [deleted file]
tests/test_string.nit [deleted file]

diff --git a/tests/sav/test_accessor.res b/tests/sav/test_accessor.res
deleted file mode 100644 (file)
index ea889b9..0000000
+++ /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 (file)
index 2bfea71..0000000
+++ /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 (file)
index 1a4284d..0000000
+++ /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 (file)
index 8dfe4ff..0000000
+++ /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 (file)
index efb4310..0000000
+++ /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 (file)
index f54df58..0000000
+++ /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 (file)
index 56b6510..0000000
+++ /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 (file)
index 67b0910..0000000
+++ /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 (file)
index 6527f27..0000000
+++ /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 (file)
index 5769d17..0000000
+++ /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 (file)
index e83de63..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-# This file is part of NIT ( http://www.nitlanguage.org ).
-#
-# Copyright 2004-2008 Jean Privat <jean@pryen.org>
-#
-# 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 (file)
index fcce3bb..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-# This file is part of NIT ( http://www.nitlanguage.org ).
-#
-# Copyright 2004-2008 Jean Privat <jean@pryen.org>
-#
-# 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 (file)
index 0719bbb..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-# This file is part of NIT ( http://www.nitlanguage.org ).
-#
-# Copyright 2004-2008 Jean Privat <jean@pryen.org>
-#
-# 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 (file)
index d667658..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-# This file is part of NIT ( http://www.nitlanguage.org ).
-#
-# Copyright 2004-2008 Jean Privat <jean@pryen.org>
-#
-# 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 (file)
index 1444e23..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-# This file is part of NIT ( http://www.nitlanguage.org ).
-#
-# Copyright 2004-2008 Jean Privat <jean@pryen.org>
-#
-# 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 (file)
index ce22835..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-# This file is part of NIT ( http://www.nitlanguage.org ).
-#
-# Copyright 2004-2008 Jean Privat <jean@pryen.org>
-#
-# 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 (file)
index 3246b45..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-# This file is part of NIT ( http://www.nitlanguage.org ).
-#
-# Copyright 2004-2008 Jean Privat <jean@pryen.org>
-#
-# 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 (file)
index b649f99..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-# This file is part of NIT ( http://www.nitlanguage.org ).
-#
-# Copyright 2004-2008 Jean Privat <jean@pryen.org>
-#
-# 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 (file)
index f4a430b..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-# This file is part of NIT ( http://www.nitlanguage.org ).
-#
-# Copyright 2004-2008 Jean Privat <jean@pryen.org>
-#
-# 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 (file)
index c76b0b3..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-# This file is part of NIT ( http://www.nitlanguage.org ).
-#
-# Copyright 2004-2008 Jean Privat <jean@pryen.org>
-#
-# 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#\"\\")