/test/language/unclassified/jb/test_jbollo1.e
Specman e | 56 lines | 24 code | 5 blank | 27 comment | 0 complexity | 47cfa45e8c2837e1a5c4919030be45b2 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_JBOLLO1 5 -- 6 -- Following a discussion with Jose Bollo in our mailing list. 7 -- 8 9insert 10 EIFFELTEST_TOOLS 11 12create {} 13 make 14 15feature {ANY} 16 n: INTEGER_8 9 17 18 make 19 local 20 integer: INTEGER_32 21 do 22 integer := 10000 * 2 23 check 24 integer = 20000 25 end 26 integer := 10000 * 2 ^ 9 27 check 28 integer = 5120000 29 end 30 -- *** Faut il aussi accepter ce qui suit ... je pense que oui... Dom 30 mars 2005 *** 31 -- integer := 10000*2 ^ n 32 -- *** 33 check 34 integer = 5120000 35 end 36 end 37 38end -- class TEST_JBOLLO1 39-- 40-- ------------------------------------------------------------------------------------------------------------------------------ 41-- Copyright notice below. Please read. 42-- 43-- SmartEiffel is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, 44-- as published by the Free Software Foundation; either version 2, or (at your option) any later version. 45-- SmartEiffel is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY; without even the implied warranty 46-- of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have 47-- received a copy of the GNU General Public License along with SmartEiffel; see the file COPYING. If not, write to the Free 48-- Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 49-- 50-- Copyright(C) 1994-2002: INRIA - LORIA (INRIA Lorraine) - ESIAL U.H.P. - University of Nancy 1 - FRANCE 51-- Copyright(C) 2003-2006: INRIA - LORIA (INRIA Lorraine) - I.U.T. Charlemagne - University of Nancy 2 - FRANCE 52-- 53-- Authors: Dominique COLNET, Philippe RIBET, Cyril ADRIAN, Vincent CROIZIER, Frederic MERIZEN 54-- 55-- http://SmartEiffel.loria.fr - SmartEiffel@loria.fr 56-- ------------------------------------------------------------------------------------------------------------------------------