fn test_pad_bottom()

in src/components/padding.rs [187:216]


    fn test_pad_bottom() {
        let padder = Padded {
            child: Box::new(Echo::<Msg>::new(false)),
            bottom: 5,
            ..Default::default()
        };
        let mut state = State::new();
        let msg = Msg(vec![
            vec!["hello world"].try_into().unwrap(),
            vec!["ok"].try_into().unwrap(),
            Line::default(),
        ]);
        state.insert(&msg);

        let drawing = padder
            .draw(&state, Dimensions::new(15, 15), DrawMode::Normal)
            .unwrap();
        let expected = vec![
            vec!["hello world"].try_into().unwrap(),
            vec!["ok"].try_into().unwrap(),
            Line::default(),
            Line::default(),
            Line::default(),
            Line::default(),
            Line::default(),
            Line::default(),
        ];

        assert_eq!(drawing, expected);
    }