Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 2e1ae1f..4e4f60b 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,4 +1,4 @@
-pub mod recognizer;
+//pub mod recognizer;
mod utf8;
@@ -719,3 +719,17 @@ impl TerminalInputParser {
}
}
}
+
+#[cfg(test)]
+mod tests {
+ #[test]
+ fn bendn() {
+ let mut t = super::TerminalInputParser::new();
+ for &char in "\x1b]7;file://klunk/home/os/pattypan\x07\x1b]0;~/pattypan\x07\x1b[30m\x1b(B\x1b[m hi sartha"
+ .as_bytes()
+ {
+ use super::TerminalInput::*;
+ dbg!(char as char, t.parse_byte(char));
+ }
+ }
+}