opentui_rust 0.2.1

High-performance terminal UI rendering engine with alpha blending and diffed buffers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[cfg(test)]
mod tests {
    use opentui::buffer::OptimizedBuffer;
    use opentui::renderer::BufferDiff;
    use opentui_rust as opentui;

    #[test]
    #[should_panic(expected = "buffer size mismatch")]
    fn test_diff_mismatch_panics() {
        let b1 = OptimizedBuffer::new(10, 10);
        let b2 = OptimizedBuffer::new(20, 20);
        let _ = BufferDiff::compute(&b1, &b2);
    }
}