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