home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Environments / SmallEiffel 0.3.3 / SmallEiffel 68k / lib_test / test_character2.e < prev    next >
Encoding:
Text File  |  1996-06-13  |  657 b   |  36 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_CHARACTER2
  5.  
  6. creation make
  7.    
  8. feature 
  9.    
  10.    make is
  11.       local
  12.      cr: CHARACTER_REF;
  13.      a: ANY;
  14.      aa: ARRAY[ANY];
  15.       do
  16.      !!aa.make(1,1);
  17.      aa.put('a',1);
  18.      is_true(equal(aa.item(1),'a'));
  19.       end;
  20.    
  21.    is_true(b: BOOLEAN) is
  22.       do
  23.      cpt := cpt + 1;
  24.      if not b then
  25.         std_output.put_string("TEST_CHARACTER2: ERROR Test # ");
  26.         std_output.put_integer(cpt);
  27.         std_output.put_string("%N");
  28.      else
  29.         -- std_output.put_string("Yes%N");
  30.      end;
  31.       end;
  32.    
  33.    cpt: INTEGER;
  34.    
  35. end -- TEST_CHARACTER2
  36.