1
use crate::editor::Position;
2
use crate::terminal::AnsiPosition;
3

            
4
#[test]
5
2
fn test_position_to_ansi_position_conversion() {
6
1
    let pos = Position { x: 10, y: 5 };
7
2
    assert_eq!(AnsiPosition::from(pos), AnsiPosition { x: 11, y: 6 });
8
2
}