home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / eiffel / smalleif.97 / se.t / SmallEiffel / lib_test / test_expanded2.e < prev    next >
Encoding:
Text File  |  1996-05-02  |  669 b   |  37 lines

  1. -- Part of SmallEiffel -- Read DISCLAIMER file -- Copyright (C) 
  2. -- Dominique COLNET and Suzanne COLLIN -- colnet@loria.fr
  3. --
  4. class TEST_EXPANDED2
  5.  
  6. creation {ANY}
  7.    make
  8.    
  9. feature {ANY}
  10.    
  11.    make is
  12.       local
  13.      e1, e2: EXPANDED2;
  14.       do
  15.      is_true(e1.x = 2);
  16.      is_true(e1 = e2);
  17.      e1.set_x(1);
  18.      is_true(e1.x = 1);
  19.      is_true(e1 /= e2);
  20.       end;
  21.    
  22.    is_true(b: BOOLEAN) is
  23.       do
  24.      cpt := cpt + 1;
  25.      if not b then
  26.         std_output.put_string("TEST_EXPANDED2: ERROR Test # ");
  27.         std_output.put_integer(cpt);
  28.         std_output.put_string("%N");
  29.      else
  30.         -- std_output.put_string("Yes%N");
  31.      end;
  32.       end;
  33.    
  34.    cpt: INTEGER;
  35.    
  36. end -- TEST_EXPANDED2
  37.