mirror of
https://github.com/nushell/nushell.git
synced 2025-01-18 04:10:18 +01:00
style: fix formatting in cursor tests
This commit is contained in:
parent
eb86d549a1
commit
e48d234435
@ -124,14 +124,13 @@ mod tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_cursor_size_zero_handling() {
|
fn test_cursor_size_zero_handling() {
|
||||||
|
|
||||||
let cursor = Cursor::new(0);
|
let cursor = Cursor::new(0);
|
||||||
assert_eq!(cursor.end(), 0);
|
assert_eq!(cursor.end(), 0);
|
||||||
|
|
||||||
let mut cursor = Cursor::new(0);
|
let mut cursor = Cursor::new(0);
|
||||||
cursor.move_forward(1);
|
cursor.move_forward(1);
|
||||||
assert_eq!(cursor.position, 0);
|
assert_eq!(cursor.position, 0);
|
||||||
|
|
||||||
cursor.move_backward(1);
|
cursor.move_backward(1);
|
||||||
assert_eq!(cursor.position, 0);
|
assert_eq!(cursor.position, 0);
|
||||||
}
|
}
|
||||||
@ -140,9 +139,8 @@ mod tests {
|
|||||||
fn test_cursor_size_one() {
|
fn test_cursor_size_one() {
|
||||||
let mut cursor = Cursor::new(1);
|
let mut cursor = Cursor::new(1);
|
||||||
assert_eq!(cursor.end(), 0);
|
assert_eq!(cursor.end(), 0);
|
||||||
|
|
||||||
cursor.move_forward(1);
|
cursor.move_forward(1);
|
||||||
assert_eq!(cursor.position, 0);
|
assert_eq!(cursor.position, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user