/[eiffelstudio]/trunk/eweasel/tests/lib044/test.e
ViewVC logotype

Contents of /trunk/eweasel/tests/lib044/test.e

Parent Directory Parent Directory | Revision Log Revision Log


Revision 99861 - (show annotations)
Sun Feb 26 15:41:11 2017 UTC (2 years, 7 months ago) by alexk
File size: 642 byte(s)
Added an example for bug#19277.
1 class TEST
2
3 create
4 make
5
6 feature {NONE} -- Creation
7
8 make
9 -- Run test.
10 local
11 table: HASH_TABLE [INTEGER, INTEGER]
12 do
13 across
14 1 |..| 3 as i
15 loop
16 create table.make (3)
17 table [1] := 7
18 table [2] := 6
19 table [3] := 5
20 if i.item /= 1 then table.remove (1) end
21 if i.item /= 2 then table.remove (2) end
22 if i.item /= 3 then table.remove (3) end
23 -- Forward iteration.
24 across
25 table as c
26 loop
27 io.put_integer (c.item)
28 end
29 -- Backward iteration.
30 across
31 table.new_cursor.reversed as c
32 loop
33 io.put_integer (c.item)
34 end
35 io.put_new_line
36 end
37 end
38
39 end

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.23