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

  1. class TEST_IFTHENELSE
  2.    
  3. creation {ANY}
  4.    make
  5.  
  6. feature {ANY}
  7.  
  8.   tab: ARRAY[BOOLEAN];
  9.  
  10.   make is
  11.       do
  12.      !!tab.make(0,0); 
  13.      tab.put((1=1),0);
  14.      if tab.item(0) then
  15.      else
  16.         std_output.put_string("TEST_IFTHENELSE: ERROR Test # 1.%N");
  17.      end;
  18.       end;
  19.    
  20. end -- TEST_IFTHENELSE
  21.