File tree 1 file changed +28
-22
lines changed
1 file changed +28
-22
lines changed Original file line number Diff line number Diff line change @@ -188,16 +188,18 @@ func createExpectedEdges(parent expectedNode, children ...expectedNode) {
188
188
}
189
189
190
190
// createTestCase1 creates a test case that initially looks like:
191
- // 0
192
- // |(5)
193
- // 1
194
- // (3)/ \(4)
195
- // 2 3.
191
+ //
192
+ // 0
193
+ // |(5)
194
+ // 1
195
+ // (3)/ \(4)
196
+ // 2 3.
196
197
//
197
198
// After keeping 0, 2, and 3, it expects the graph:
198
- // 0
199
- // (3)/ \(4)
200
- // 2 3.
199
+ //
200
+ // 0
201
+ // (3)/ \(4)
202
+ // 2 3.
201
203
func createTestCase1 () trimTreeTestcase {
202
204
// Create initial graph
203
205
graph := & Graph {make (Nodes , 4 )}
@@ -229,20 +231,22 @@ func createTestCase1() trimTreeTestcase {
229
231
}
230
232
231
233
// createTestCase2 creates a test case that initially looks like:
232
- // 3
233
- // | (12)
234
- // 1
235
- // | (8)
236
- // 2
237
- // | (15)
238
- // 0
239
- // | (10)
240
- // 4.
234
+ //
235
+ // 3
236
+ // | (12)
237
+ // 1
238
+ // | (8)
239
+ // 2
240
+ // | (15)
241
+ // 0
242
+ // | (10)
243
+ // 4.
241
244
//
242
245
// After keeping 3 and 4, it expects the graph:
243
- // 3
244
- // | (10)
245
- // 4.
246
+ //
247
+ // 3
248
+ // | (10)
249
+ // 4.
246
250
func createTestCase2 () trimTreeTestcase {
247
251
// Create initial graph
248
252
graph := & Graph {make (Nodes , 5 )}
@@ -284,10 +288,12 @@ func createTestCase3() trimTreeTestcase {
284
288
}
285
289
286
290
// createTestCase4 creates a test case that initially looks like:
287
- // 0.
291
+ //
292
+ // 0.
288
293
//
289
294
// After keeping 0, it expects the graph:
290
- // 0.
295
+ //
296
+ // 0.
291
297
func createTestCase4 () trimTreeTestcase {
292
298
graph := & Graph {make (Nodes , 1 )}
293
299
nodes := graph .Nodes
You can’t perform that action at this time.
0 commit comments