File: table_replace_cell.tref

package info (click to toggle)
librnd 4.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,812 kB
  • sloc: ansic: 126,990; sh: 2,602; makefile: 2,145; awk: 7
file content (103 lines) | stat: -rw-r--r-- 1,986 bytes parent folder | download | duplicates (6)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
Untouched, original tree:
  ta:{non-empty} cols: 2, rows: 4
   Row 0:{rowname0}
    te:{} {00}
    te:{} {01}
   Row 1:{rowname1}
    te:{} {10}
    te:{} {11}
   Row 2:{rowname2}
    te:{} {20}
    li:{21} FIRST te:{} LAST te:{}
     te:{} {a}
     te:{} {b}
     te:{} {c}
     te:{} {d}
   Row 3:{rowname3}
    te:{} {30}
    ha:{31} entries: 4
     te:{c} {3}
     te:{d} {4}
     te:{a} {1}
     te:{b} {2}
---
Replacing a valid cell (cell 0, 0)
table_replace_cell: 0/0 success
res:
  ta:{non-empty} cols: 2, rows: 4
   Row 0:{rowname0}
    te:{} {for_replacing}
    te:{} {01}
   Row 1:{rowname1}
    te:{} {10}
    te:{} {11}
   Row 2:{rowname2}
    te:{} {20}
    li:{21} FIRST te:{} LAST te:{}
     te:{} {a}
     te:{} {b}
     te:{} {c}
     te:{} {d}
   Row 3:{rowname3}
    te:{} {30}
    ha:{31} entries: 4
     te:{c} {3}
     te:{d} {4}
     te:{a} {1}
     te:{b} {2}
old:
  te:{} [unlinked] {00}
---
Trying to replace out of boundaries (cell 2, 2)
table_replace_cell: error: boundary check error: out of bounds
res:
  ta:{non-empty} cols: 2, rows: 4
   Row 0:{rowname0}
    te:{} {for_replacing}
    te:{} {01}
   Row 1:{rowname1}
    te:{} {10}
    te:{} {11}
   Row 2:{rowname2}
    te:{} {20}
    li:{21} FIRST te:{} LAST te:{}
     te:{} {a}
     te:{} {b}
     te:{} {c}
     te:{} {d}
   Row 3:{rowname3}
    te:{} {30}
    ha:{31} entries: 4
     te:{c} {3}
     te:{d} {4}
     te:{a} {1}
     te:{b} {2}
old:
  * node is NULL *
---
Trying to replace an already replaced cell (cell 0, 0)
table_replace_cell: 0/0 success
res:
  ta:{non-empty} cols: 2, rows: 4
   Row 0:{rowname0}
    te:{} {can_replace}
    te:{} {01}
   Row 1:{rowname1}
    te:{} {10}
    te:{} {11}
   Row 2:{rowname2}
    te:{} {20}
    li:{21} FIRST te:{} LAST te:{}
     te:{} {a}
     te:{} {b}
     te:{} {c}
     te:{} {d}
   Row 3:{rowname3}
    te:{} {30}
    ha:{31} entries: 4
     te:{c} {3}
     te:{d} {4}
     te:{a} {1}
     te:{b} {2}
old:
  te:{} [unlinked] {for_replacing}