tests: remove base_at_cached.nit
authorJean Privat <jean@pryen.org>
Thu, 26 Feb 2015 11:41:14 +0000 (18:41 +0700)
committerJean Privat <jean@pryen.org>
Thu, 26 Feb 2015 11:41:14 +0000 (18:41 +0700)
Signed-off-by: Jean Privat <jean@pryen.org>

tests/base_at_cached.nit [deleted file]
tests/sav/base_at_cached.res [deleted file]
tests/sav/base_at_cached_alt1.res [deleted file]
tests/sav/base_at_cached_alt2.res [deleted file]
tests/sav/base_at_cached_alt3.res [deleted file]

diff --git a/tests/base_at_cached.nit b/tests/base_at_cached.nit
deleted file mode 100644 (file)
index b6159a6..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-# This file is part of NIT ( http://www.nitlanguage.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.
-
-import kernel
-
-class Base
-       var foo: Int = 10
-       fun -: Int do return foo + 20
-       fun bar: Int do return -self + 40
-       #alt1#fun fail is cached do end
-       #alt2#fun fail(i: Int): Int is cached do return i
-end
-
-class CMinus
-       super Base
-
-       redef fun - is cached do return foo + 1
-end
-
-class CBar
-       super Base
-
-       redef fun bar is cached do return -self + 2
-end
-
-#alt3#fun fail: Int is cached do return 0
-
-fun test(b: Base)
-do
-       b.foo.output
-       (-b).output
-       b.bar.output
-       b.foo = 110
-       b.foo.output
-       (-b).output
-       b.bar.output
-       '\n'.output
-end
-
-test(new Base)
-test(new CMinus)
-test(new CBar)
diff --git a/tests/sav/base_at_cached.res b/tests/sav/base_at_cached.res
deleted file mode 100644 (file)
index 9fc72b5..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-10
-30
-70
-110
-130
-170
-
-10
-11
-51
-110
-11
-51
-
-10
-30
-32
-110
-130
-32
-
diff --git a/tests/sav/base_at_cached_alt1.res b/tests/sav/base_at_cached_alt1.res
deleted file mode 100644 (file)
index 29c505e..0000000
+++ /dev/null
@@ -1 +0,0 @@
-alt/base_at_cached_alt1.nit:21,6--9: Syntax error: only a function can be cached.
diff --git a/tests/sav/base_at_cached_alt2.res b/tests/sav/base_at_cached_alt2.res
deleted file mode 100644 (file)
index 993e94e..0000000
+++ /dev/null
@@ -1 +0,0 @@
-alt/base_at_cached_alt2.nit:22,6--9: Syntax error: only a function without arguments can be cached.
diff --git a/tests/sav/base_at_cached_alt3.res b/tests/sav/base_at_cached_alt3.res
deleted file mode 100644 (file)
index d1eb131..0000000
+++ /dev/null
@@ -1 +0,0 @@
-alt/base_at_cached_alt3.nit:37,5--8: Error: only abstract and concrete classes can have cached functions.