From 3742df20608218d34598a4128e4ffda017b0cc86 Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Thu, 26 Feb 2015 18:41:14 +0700 Subject: [PATCH] tests: remove base_at_cached.nit Signed-off-by: Jean Privat --- tests/base_at_cached.nit | 53 ------------------------------------- tests/sav/base_at_cached.res | 21 --------------- tests/sav/base_at_cached_alt1.res | 1 - tests/sav/base_at_cached_alt2.res | 1 - tests/sav/base_at_cached_alt3.res | 1 - 5 files changed, 77 deletions(-) delete mode 100644 tests/base_at_cached.nit delete mode 100644 tests/sav/base_at_cached.res delete mode 100644 tests/sav/base_at_cached_alt1.res delete mode 100644 tests/sav/base_at_cached_alt2.res delete mode 100644 tests/sav/base_at_cached_alt3.res diff --git a/tests/base_at_cached.nit b/tests/base_at_cached.nit deleted file mode 100644 index b6159a6..0000000 --- a/tests/base_at_cached.nit +++ /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 index 9fc72b5..0000000 --- a/tests/sav/base_at_cached.res +++ /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 index 29c505e..0000000 --- a/tests/sav/base_at_cached_alt1.res +++ /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 index 993e94e..0000000 --- a/tests/sav/base_at_cached_alt2.res +++ /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 index d1eb131..0000000 --- a/tests/sav/base_at_cached_alt3.res +++ /dev/null @@ -1 +0,0 @@ -alt/base_at_cached_alt3.nit:37,5--8: Error: only abstract and concrete classes can have cached functions. -- 1.7.9.5