/test/language/expanded/test_expanded17.e
Specman e | 90 lines | 61 code | 8 blank | 21 comment | 4 complexity | 7262613d6725a1bada3fc8999e39ebaf 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_EXPANDED17 5 6create {ANY} 7 make 8 9feature {ANY} 10 a2: AUX_EXPANDED16A 11 12 make 13 local 14 a1: AUX_EXPANDED16A; elt: AUX_EXPANDED16B; i: INTEGER 15 do 16 create a1.make(3) 17 elt.set_all_with(1.5) 18 from 19 i := a1.upper 20 until 21 i < a1.lower 22 loop 23 if elt = a1.item(0) then 24 error 25 end 26 i := i - 1 27 end 28 29 a1.set_all_with(elt) 30 from 31 i := a1.upper 32 until 33 i < a1.lower 34 loop 35 if elt /= a1.item(0) then 36 error 37 end 38 i := i - 1 39 end 40 41 create a2.make(3) 42 elt.set_all_with(1.5) 43 from 44 i := a2.upper 45 until 46 i < a2.lower 47 loop 48 if elt = a2.item(0) then 49 error 50 end 51 i := i - 1 52 end 53 54 a2.set_all_with(elt) 55 from 56 i := a2.upper 57 until 58 i < a2.lower 59 loop 60 if elt /= a2.item(0) then 61 error 62 end 63 i := i - 1 64 end 65 end 66 67 error 68 do 69 std_output.put_string("TEST_EXPANDED17: ERROR%N") 70 end 71 72end -- class TEST_EXPANDED17 73-- 74-- ------------------------------------------------------------------------------------------------------------------------------ 75-- Copyright notice below. Please read. 76-- 77-- SmartEiffel is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, 78-- as published by the Free Software Foundation; either version 2, or (at your option) any later version. 79-- SmartEiffel is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY; without even the implied warranty 80-- of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have 81-- received a copy of the GNU General Public License along with SmartEiffel; see the file COPYING. If not, write to the Free 82-- Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 83-- 84-- Copyright(C) 1994-2002: INRIA - LORIA (INRIA Lorraine) - ESIAL U.H.P. - University of Nancy 1 - FRANCE 85-- Copyright(C) 2003-2006: INRIA - LORIA (INRIA Lorraine) - I.U.T. Charlemagne - University of Nancy 2 - FRANCE 86-- 87-- Authors: Dominique COLNET, Philippe RIBET, Cyril ADRIAN, Vincent CROIZIER, Frederic MERIZEN 88-- 89-- http://SmartEiffel.loria.fr - SmartEiffel@loria.fr 90-- ------------------------------------------------------------------------------------------------------------------------------