polypty 0.1.0

Agent-aware terminal multiplexer with sidebar tabs and nested panes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use super::*;

#[test]
fn removing_leaf_collapses_parent_split() {
    let mut tree = SplitTree::new(1);
    split(&mut tree, 1, 2, SplitAxis::Vertical, None);
    assert!(tree.remove(2));
    assert!(matches!(
        tree.root,
        Some(crate::workspace::tree::SplitNode::Leaf(1))
    ));
}