aboutsummaryrefslogtreecommitdiff
path: root/contrib/libg++/libg++/tests/tLList.exp
blob: 727f9b538c7566a86866d25d234f7892f67cf487 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
prepending...
a: 9 8 7 6 5 4 3 2 1 0 
appending...
a: 9 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 9 
b = a: 
9 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 9 
remove_front of first 10 elements:
b: 0 1 2 3 4 5 6 7 8 9 
inserting 100 after sixth element...
b: 0 1 2 3 4 5 100 6 7 8 9 
after a.join(b)
9 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 100 6 7 8 9 
b: 

b: 
999 
bb: 
999 
prepending...
a: 
9 8 7 6 5 4 3 2 1 0 
appending...
a: 9 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 9 
b = a: 9 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 9 
remove_front of first 10 elements:
b: 0 1 2 3 4 5 6 7 8 9 
inserting 100 after sixth element...
b: 0 1 2 3 4 5 100 6 7 8 9 
after aa = a; aa.join(b)
9 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 100 6 7 8 9 
b: 

b: 
999 
bb: 
999 
z = a: 9 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7 8 9 
remove_rear of last 10 elements:
z: 9 8 7 6 5 4 3 2 1 0 
inserting 100 before alternate elements...
z: 100 9 100 8 100 7 100 6 100 5 100 4 100 3 100 2 100 1 100 0 
inserting 200 after sixth element...
z: 100 9 100 8 100 7 200 100 6 100 5 100 4 100 3 100 2 100 1 100 0 
deleting alternate elements of z...100 100 100 200 6 5 4 3 2 1 0 
z: 9 8 7 100 100 100 100 100 100 100 
z in reverse order:
100 100 100 100 100 100 100 7 8 9 

End of test