home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Environments / SmallEiffel 0.3.3 / SmallEiffel 68k / lib_test / test_manifest_array7.e < prev    next >
Encoding:
Text File  |  1996-06-13  |  979 b   |  50 lines  |  [TEXT/EDIT]

  1. -- Part of SmallEiffel -- Read DISCLAIMER file -- Copyright (C) 
  2. -- Dominique COLNET and Suzanne COLLIN -- colnet@loria.fr
  3. --
  4. class TEST_MANIFEST_ARRAY7
  5.  
  6. creation {ANY}
  7.    make
  8.    
  9. feature {ANY}
  10.  
  11.    t_double: ARRAY[DOUBLE];
  12.    t_boolean: ARRAY[BOOLEAN];
  13.    t_integer: ARRAY[INTEGER];
  14.    t_animal: ARRAY[ANIMAL];
  15.    t_any: ARRAY[ANY];
  16.         
  17.    make is
  18.       local
  19.      cat: CAT;
  20.       do
  21.      t_boolean := <<true, false>>;
  22.      t_integer := <<1,2,3>>;
  23.      t_double := <<1,2,3>>;
  24.      is_true(equal(t_double,t_integer));
  25.  
  26.      !!cat;
  27.      t_any := <<cat,cat>>;
  28.      t_animal := <<cat,cat>>;
  29.      
  30.      is_true(equal(t_any,t_animal));
  31.      is_true(t_any.first = t_animal.first);
  32.       end;
  33.    
  34.    is_true(b: BOOLEAN) is
  35.       do
  36.      cpt := cpt + 1;
  37.      if not b then
  38.         std_output.put_string("TEST_MANIFEST_ARRAY7: ERROR Test # ");
  39.         std_output.put_integer(cpt);
  40.         std_output.put_string("%N");
  41.      else
  42.         -- std_output.put_string("Yes%N");
  43.      end;
  44.       end;
  45.    
  46.    cpt: INTEGER;
  47.    
  48. end -- TEST_MANIFEST_ARRAY7
  49.  
  50.