#[oxi_test]
Expand description
Tests a piece of code inside a Neovim session.
Examples
ⓘ
use nvim_oxi::{self as nvim, api};
#[nvim::test]
fn set_get_del_var() {
api::set_var("foo", 42).unwrap();
assert_eq!(Ok(42), api::get_var("foo"));
assert_eq!(Ok(()), api::del_var("foo"));
}