/test/lib/storage/collection/test_old_manifest_array.e
Specman e | 59 lines | 30 code | 8 blank | 21 comment | 0 complexity | ce5b2fa614a16e78c5bc3de23a547a64 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_OLD_MANIFEST_ARRAY 5 6insert 7 EIFFELTEST_TOOLS 8 9create {} 10 make 11 12feature {ANY} 13 foo: STRING "foo" 14 15 bar: STRING "bar" 16 17 make 18 do 19 assert(( 20 <<foo, bar>>).is_equal({ARRAY[STRING] 1, << foo, bar >> })) 21 assert(( 22 <<1, 1000>>).is_equal({ARRAY[INTEGER_16] 1, << 1, 1000 >> })) 23 assert(( 24 <<1.5, 100.7>>).is_equal({ARRAY[REAL] 1, << 1.5, 100.7 >> })) 25 assert(( 26 <<cat, dog>>).is_equal({ARRAY[QUADRUPED] 1, << cat, dog >> })) 27 assert(( 28 <<1, 2>>).item(1) = 1) 29 end 30 31 cat: CAT 32 once 33 create Result 34 end 35 36 dog: DOG 37 once 38 create Result 39 end 40 41end -- class TEST_OLD_MANIFEST_ARRAY 42-- 43-- ------------------------------------------------------------------------------------------------------------------------------ 44-- Copyright notice below. Please read. 45-- 46-- SmartEiffel is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, 47-- as published by the Free Software Foundation; either version 2, or (at your option) any later version. 48-- SmartEiffel is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY; without even the implied warranty 49-- of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have 50-- received a copy of the GNU General Public License along with SmartEiffel; see the file COPYING. If not, write to the Free 51-- Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 52-- 53-- Copyright(C) 1994-2002: INRIA - LORIA (INRIA Lorraine) - ESIAL U.H.P. - University of Nancy 1 - FRANCE 54-- Copyright(C) 2003-2006: INRIA - LORIA (INRIA Lorraine) - I.U.T. Charlemagne - University of Nancy 2 - FRANCE 55-- 56-- Authors: Dominique COLNET, Philippe RIBET, Cyril ADRIAN, Vincent CROIZIER, Frederic MERIZEN 57-- 58-- http://SmartEiffel.loria.fr - SmartEiffel@loria.fr 59-- ------------------------------------------------------------------------------------------------------------------------------