Skip to content

Commit

Permalink
check len
Browse files Browse the repository at this point in the history
  • Loading branch information
LoricAndre committed Nov 30, 2024
1 parent 1418473 commit 2430374
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions e2e/tests/issues.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fn issue_359_multi_regex_unicode() -> Result<()> {
tmux.start_sk(Some("echo 'ああa'"), &["--regex", "-q", "'a'"])?;
tmux.until(|l| l[0] == "> a")?;

tmux.until(|l| l[2] == "> ああa")?;
tmux.until(|l| l.len() > 2 && l[2] == "> ああa")?;

Ok(())
}
Expand All @@ -18,7 +18,7 @@ fn issue_361_literal_space_control() -> Result<()> {
let tmux = TmuxController::new()?;
tmux.start_sk(Some("echo -ne 'foo bar\\nfoo bar'"), &["-q", "'foo\\ bar'"])?;
tmux.until(|l| l[0].starts_with(">"))?;
tmux.until(|l| l[2] == "> foo bar")?;
tmux.until(|l| l.len() > 2 && l[2] == "> foo bar")?;

Ok(())
}
Expand All @@ -28,7 +28,7 @@ fn issue_361_literal_space_invert() -> Result<()> {
tmux.send_keys(&[Str("set +o histexpand"), Enter])?;
tmux.start_sk(Some("echo -ne 'foo bar\\nfoo bar'"), &["-q", "'!foo\\ bar'"])?;
tmux.until(|l| l[0].starts_with(">"))?;
tmux.until(|l| l[2] == "> foo bar")?;
tmux.until(|l| l.len() > 2 && l[2] == "> foo bar")?;

Ok(())
}

0 comments on commit 2430374

Please sign in to comment.