mirror of
https://github.com/roc-lang/roc.git
synced 2024-10-05 14:47:18 +03:00
update repl_basic_test because of #6525
This commit is contained in:
parent
b5f68bc020
commit
964c7dbcf0
@ -7,7 +7,7 @@ use std::time::Duration;
|
||||
fn roc_repl_session() -> Result<PtyReplSession, Error> {
|
||||
let roc_repl = PtyReplSession {
|
||||
echo_on: false,
|
||||
prompt: "\u{1b}[0K\u{1b}[34m»\u{1b}[0m ".to_string(),
|
||||
prompt: "\u{1b}[0K\u{1b}[1;36m»\u{1b}[0m ".to_string(),
|
||||
pty_session: spawn("./roc repl", Some(7000))?,
|
||||
quit_command: None,
|
||||
};
|
||||
@ -23,8 +23,8 @@ fn main() -> Result<(), Error> {
|
||||
|
||||
thread::sleep(Duration::from_secs(1));
|
||||
|
||||
match repl.exp_regex(r".*2\u{1b}\[35m : \u{1b}\[0mNum *.*") {
|
||||
Ok((a, b)) => {
|
||||
match repl.exp_regex(r".*2\u{1b}\[1;32m : \u{1b}\[0mNum *.*") { // 2 : Num
|
||||
Ok(_) => {
|
||||
println!("Expected output received.");
|
||||
return Ok(());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user