/test/lib/numeric/integer/test_integer_8.e
Specman e | 58 lines | 31 code | 5 blank | 22 comment | 1 complexity | 145c548dcbe49405698a5feb4db1b21c 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_INTEGER_8 5 -- To test INTEGER_8 6 7create {} 8 make 9 10feature {ANY} 11 make 12 local 13 i8: INTEGER_8; i32, i: INTEGER 14 do 15 i32 := 2 16 i := i8 + i32 17 assert(i = 2) 18 i := 0 19 i := i32.max(i8) 20 assert(i = 2) 21 i := 76 22 assert(76 = i) 23 assert(i + 1 = 77) 24 assert(76 = i) 25 end 26 27 assert (b: BOOLEAN) 28 do 29 cpt := cpt + 1 30 if not b then 31 sedb_breakpoint 32 std_output.put_string("TEST_INTEGER_8: ERROR Test # ") 33 std_output.put_integer(cpt) 34 std_output.put_string("%N") 35 end 36 end 37 38 cpt: INTEGER 39 40end -- class TEST_INTEGER_8 41-- 42-- ------------------------------------------------------------------------------------------------------------------------------ 43-- Copyright notice below. Please read. 44-- 45-- SmartEiffel is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, 46-- as published by the Free Software Foundation; either version 2, or (at your option) any later version. 47-- SmartEiffel is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY; without even the implied warranty 48-- of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have 49-- received a copy of the GNU General Public License along with SmartEiffel; see the file COPYING. If not, write to the Free 50-- Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 51-- 52-- Copyright(C) 1994-2002: INRIA - LORIA (INRIA Lorraine) - ESIAL U.H.P. - University of Nancy 1 - FRANCE 53-- Copyright(C) 2003-2006: INRIA - LORIA (INRIA Lorraine) - I.U.T. Charlemagne - University of Nancy 2 - FRANCE 54-- 55-- Authors: Dominique COLNET, Philippe RIBET, Cyril ADRIAN, Vincent CROIZIER, Frederic MERIZEN 56-- 57-- http://SmartEiffel.loria.fr - SmartEiffel@loria.fr 58-- ------------------------------------------------------------------------------------------------------------------------------