mirror of
https://github.com/Noratrieb/datastructures.git
synced 2026-01-14 17:35:02 +01:00
tree
This commit is contained in:
parent
49d7f7fddd
commit
30472e36e7
1 changed files with 3 additions and 1 deletions
|
|
@ -146,6 +146,8 @@ mod test {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn print_cool_tree() {
|
fn print_cool_tree() {
|
||||||
|
// run this test with no capture off or let it fail
|
||||||
|
|
||||||
let tree = Node::new(
|
let tree = Node::new(
|
||||||
4,
|
4,
|
||||||
Some(Node::new(2, Some(Node::leaf(1)), Some(Node::leaf(3)))),
|
Some(Node::new(2, Some(Node::leaf(1)), Some(Node::leaf(3)))),
|
||||||
|
|
@ -162,6 +164,6 @@ mod test {
|
||||||
let giant_tree = Node::new(5, Some(epic_tree.clone()), Some(epic_tree.clone()));
|
let giant_tree = Node::new(5, Some(epic_tree.clone()), Some(epic_tree.clone()));
|
||||||
println!("{}", giant_tree.display());
|
println!("{}", giant_tree.display());
|
||||||
|
|
||||||
panic!("fail");
|
// panic!("let this fail for printing");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue