fn test_bounding()

in src/components/bounding.rs [73:89]


    fn test_bounding() -> anyhow::Result<()> {
        let test = Bounded::new(Box::new(Echo::<Msg>::new(false)), Some(2), Some(1));
        let msg = Msg(vec![
            crate::line!(Span::new_unstyled("hello world")?),
            crate::line!(Span::new_unstyled("hello world")?),
        ]);
        let output = test.draw(
            &crate::state![&msg],
            Dimensions { x: 50, y: 50 },
            DrawMode::Normal,
        )?;
        let expected = vec![crate::line!(Span::new_unstyled("he")?)];

        assert_eq!(output, expected);

        Ok(())
    }