/test/language/unclassified/test_old.e
Specman e | 61 lines | 33 code | 7 blank | 21 comment | 0 complexity | 7b18e243a104585c6b6191c4cc61550d MD5 | raw file
1-- This file is part of SmartEiffel The GNU Eiffel Compiler Tools and Libraries. 2-- See the Copyright notice at the end of this file. 3-- 4class TEST_OLD 5 6create {} 7 make 8 9feature {ANY} 10 test_old: TEST_OLD 11 12 make 13 require 14 test_old = Void 15 do 16 test_old := f 17 test2 18 test2 19 ensure 20 old test_old = Void 21 test_old = Void 22 end 23 24 f: like Current 25 require 26 test_old = Void 27 do 28 test_old := Void 29 ensure 30 old test_old = Void 31 test_old = Void 32 end 33 34 i: INTEGER 35 36 test2 37 do 38 i := i + 1 39 ensure 40 i - 1 = old i 41 end 42 43end -- class TEST_OLD 44-- 45-- ------------------------------------------------------------------------------------------------------------------------------ 46-- Copyright notice below. Please read. 47-- 48-- SmartEiffel is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, 49-- as published by the Free Software Foundation; either version 2, or (at your option) any later version. 50-- SmartEiffel is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY; without even the implied warranty 51-- of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have 52-- received a copy of the GNU General Public License along with SmartEiffel; see the file COPYING. If not, write to the Free 53-- Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 54-- 55-- Copyright(C) 1994-2002: INRIA - LORIA (INRIA Lorraine) - ESIAL U.H.P. - University of Nancy 1 - FRANCE 56-- Copyright(C) 2003-2006: INRIA - LORIA (INRIA Lorraine) - I.U.T. Charlemagne - University of Nancy 2 - FRANCE 57-- 58-- Authors: Dominique COLNET, Philippe RIBET, Cyril ADRIAN, Vincent CROIZIER, Frederic MERIZEN 59-- 60-- http://SmartEiffel.loria.fr - SmartEiffel@loria.fr 61-- ------------------------------------------------------------------------------------------------------------------------------