home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Environments / SmallEiffel 0.3.3 / SmallEiffel 68k / lib_test / test_eval18.e < prev    next >
Encoding:
Text File  |  1996-06-13  |  489 b   |  34 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_EVAL18
  5.  
  6. creation make
  7.    
  8. feature 
  9.    
  10.    make is
  11.       local
  12.      a: ARRAY[BOOLEAN];
  13.       do
  14.      !!a.make(1,2);
  15.      a.put(true,1);
  16.      a.put(false,2);
  17.      check
  18.         a.item(1);
  19.         a.item(2) = false;
  20.      end;
  21.      a := Void;
  22.      check
  23.         a = Void;
  24.      end;
  25.      a := <<true,false>>;
  26.      check
  27.         a.item(1);
  28.         a.item(2) = false;
  29.      end;
  30.  
  31.       end;
  32.  
  33. end -- TEST_EVAL18
  34.