aboutsummaryrefslogtreecommitdiffstats
path: root/tests/weird.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/weird.rs')
-rw-r--r--tests/weird.rs17
1 files changed, 2 insertions, 15 deletions
diff --git a/tests/weird.rs b/tests/weird.rs
index 2a27583..bae2aeb 100644
--- a/tests/weird.rs
+++ b/tests/weird.rs
@@ -1,19 +1,6 @@
-#![allow(clippy::cognitive_complexity)]
+mod helpers;
#[test]
fn intermediate_control() {
- let mut parser = vt100::Parser::default();
- assert_eq!(parser.screen().cursor_position(), (0, 0));
-
- parser.process(b"\x1b");
- assert_eq!(parser.screen().cursor_position(), (0, 0));
-
- parser.process(b"[");
- assert_eq!(parser.screen().cursor_position(), (0, 0));
-
- parser.process(b"\n");
- assert_eq!(parser.screen().cursor_position(), (1, 0));
-
- parser.process(b"C");
- assert_eq!(parser.screen().cursor_position(), (1, 1));
+ helpers::fixture("intermediate_control");
}