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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 89305 - (show annotations)
Tue Aug 7 06:37:19 2012 UTC (7 years, 5 months ago) by tedf
File size: 971 byte(s)
Added tests from Nadia Polikarpova's report.

Updated status in doc:
https://docs.google.com/a/eiffel.com/spreadsheet/ccc?key=0AlPi_ByITFIVdDVxcDRld1o3N2w1SVpuV0EzbVMzWFE#gid=0
1 class
2 TEST
3
4 create
5
6 make
7
8 feature {NONE} -- Initialization
9
10 make is
11 -- Execute test.
12 do
13 dynamic_tree_fill_subtree_1
14 dynamic_tree_fill_subtree_2
15 end
16
17 dynamic_tree_fill_subtree_1
18 -- `fill_subtree' assumes that Current and `other' have the same number of children,
19 -- but if Current had children before, then now it has more,
20 -- so cursor falls off the list of children of `other'.
21 local
22 tree1, tree2: TWO_WAY_TREE [INTEGER]
23 do
24 create tree1.make (1)
25 tree1.put_front (2)
26 create tree2.make (5)
27 tree2.put_front (6)
28 tree1.fill (tree2)
29 end
30
31 dynamic_tree_fill_subtree_2
32 -- Uses `other.item' instead of `other.child_item' while copying child items from other,
33 -- which results in just copying the value of the `other' node many times.
34 local
35 tree1, tree2: TWO_WAY_TREE [INTEGER]
36 do
37 create tree1.make (1)
38 create tree2.make (5)
39 tree2.put_front (6)
40 tree1.fill (tree2)
41 check tree1.has (6) end
42 end
43
44
45 end

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.23