/test/lib/storage/collection/test_fast_has.e
Specman e | 58 lines | 31 code | 4 blank | 23 comment | 0 complexity | 490a0ccff0e6b8e49ddacdf3a39c252f 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_FAST_HAS 5 6create {} 7 make 8 9feature {ANY} 10 make 11 local 12 a: ARRAY[INTEGER] 13 fa: FAST_ARRAY[INTEGER] 14 do 15 -- Array 16 create a.make(1,20) 17 check 18 not a.fast_has(2) 19 a.fast_has(0) 20 end 21 create a.with_capacity(20, 1) 22 check 23 not a.fast_has(2) 24 not a.fast_has(0) 25 end 26 27 -- Test fast_array 28 create fa.make(20) 29 check 30 not fa.fast_has(2) 31 fa.fast_has(0) 32 end 33 create fa.with_capacity(20) 34 check 35 not fa.fast_has(2) 36 not fa.fast_has(0) 37 end 38 end 39 40end -- class TEST_FAST_HAS 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-- ------------------------------------------------------------------------------------------------------------------------------