home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Environments / SmallEiffel 0.3.3 / SmallEiffel 68k / lib_test / test_generic7.e < prev    next >
Encoding:
Text File  |  1996-06-13  |  559 b   |  35 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_GENERIC7
  5.    -- From a bug report of Xavier GREGUT
  6.  
  7. creation make
  8.  
  9. feature 
  10.    
  11.     make is
  12.     local
  13.         table: AUX_GENERIC7HT[STRING,INTEGER];
  14.     do
  15.         !! table.make(10);
  16.         table.put(5, "cinq");
  17.         display(table);
  18.     end;
  19.  
  20.     display(l: AUX_GENERIC7XCT[INTEGER]) is
  21.     do
  22.         from
  23.         l.start;
  24.         until
  25.         l.after
  26.         loop
  27.            check
  28.           l.item = 5
  29.            end;
  30.            l.forth;
  31.         end;
  32.     end;
  33.  
  34. end -- TEST_GENERIC7
  35.