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