home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Environments / SmallEiffel 0.3.3 / SmallEiffel 68k / lib_test / test_clone2.e < prev    next >
Encoding:
Text File  |  1996-06-13  |  715 b   |  39 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_CLONE2
  5.    
  6. creation make
  7.    
  8. feature 
  9.    
  10.    make is
  11.       local
  12.      ir: INTEGER_REF;
  13.      a: ANY;
  14.       do
  15.      is_true(("").is_equal(clone("")));
  16.  
  17. -- *** ??? ***  clone(expanded) 
  18. --     is_true(clone(3) = 3);
  19. --     a := clone(3);
  20. --     ir ?= a;
  21. --     is_true(ir.item = 3);
  22.       end;
  23.    
  24.    is_true(b: BOOLEAN) is
  25.       do
  26.      cpt := cpt + 1;
  27.      if not b then
  28.         std_output.put_string("TEST_CLONE2: ERROR Test # ");
  29.         std_output.put_integer(cpt);
  30.         std_output.put_string("%N");
  31.      else
  32.         -- std_output.put_string("Yes %N");
  33.      end;
  34.       end;
  35.    
  36.    cpt: INTEGER;
  37.    
  38. end -- TEST_CLONE
  39.