update repl_basic_test because of #6525

This commit is contained in:
Anton-4 2024-02-21 13:41:47 +01:00
parent b5f68bc020
commit 964c7dbcf0
No known key found for this signature in database
GPG Key ID: 0971D718C0A9B937

View File

@ -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}[34\u{1b}[0m ".to_string(),
prompt: "\u{1b}[0K\u{1b}[1;36\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(());
}