Skip to content

Commit 3809e49

Browse files
committed
Remove readline test
1 parent 92e63f4 commit 3809e49

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed

vm/src/readline.rs

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -122,44 +122,6 @@ mod rustyline_readline {
122122
}
123123
}
124124
}
125-
126-
#[cfg(test)]
127-
mod test_rusty_readline {
128-
use super::Readline;
129-
use crate::readline::ReadlineResult::Line;
130-
use rustyline::error::ReadlineError;
131-
use rustyline::{
132-
completion::Completer, highlight::Highlighter, hint::Hinter, validate::Validator,
133-
Context,
134-
};
135-
struct HelperShim {}
136-
impl rustyline::Helper for HelperShim {}
137-
impl Highlighter for HelperShim {}
138-
impl Validator for HelperShim {}
139-
impl Completer for HelperShim {
140-
type Candidate = String;
141-
142-
fn complete(
143-
&self,
144-
_line: &str,
145-
_pos: usize,
146-
_ctx: &Context,
147-
) -> rustyline::Result<(usize, Vec<String>)> {
148-
Err(ReadlineError::Interrupted)
149-
}
150-
}
151-
impl Hinter for HelperShim {
152-
type Hint = String;
153-
}
154-
#[test]
155-
#[ignore]
156-
fn test_multi_read_line() {
157-
let mut repl = Readline::new(HelperShim {});
158-
if let Line(line) = repl.readline("print('hello')\nprint('hello2')\n") {
159-
assert_eq!(line, "print('hello')");
160-
}
161-
}
162-
}
163125
}
164126

165127
#[cfg(target_arch = "wasm32")]

0 commit comments

Comments
 (0)