Skip to content

Commit

Permalink
tests: nvim_cmd errors with echo "foo" on 0.9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
noib3 committed Oct 2, 2023
1 parent 0e9672c commit 392b419
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/src/api/vimscript.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ fn call_function() {
#[cfg(not(feature = "neovim-0-8"))]
#[oxi::test]
fn cmd_basic() {
let cmd =
if cfg!(feature = "neovim-0-9") { "echo 'foo'" } else { "checktime" };
let cmd = "checktime";
let infos = CmdInfos::builder().cmd(cmd).build();
let opts = CmdOpts::builder().output(true).build();
assert_eq!(Ok(None), api::cmd(&infos, &opts));
Expand All @@ -21,8 +20,7 @@ fn cmd_basic() {
#[cfg(not(feature = "neovim-0-8"))]
#[oxi::test]
fn cmd_no_output() {
let cmd =
if cfg!(feature = "neovim-0-9") { "echo 'foo'" } else { "checktime" };
let cmd = "checktime";
let infos = CmdInfos::builder().cmd(cmd).build();
let opts = CmdOpts::builder().output(false).build();
assert_eq!(Ok(None), api::cmd(&infos, &opts));
Expand Down

0 comments on commit 392b419

Please sign in to comment.