vim test redux (#11709)
This cleans up the neovim-backed vim tests: - removed exempted tests (we'll rely on bug reports to find missing edge cases) - moved all assertions into non-async fn's so that failures are reporting on the right file/line - removed the NeovimBackedBindingTestContext - renamed a few things to make them clearer - reduced the number of permutations tested in some cases to reduce slowest test from 60s to 5s Release Notes: - N/A
This commit is contained in:
parent
48cba328f2
commit
f550f23b97
38 changed files with 2311 additions and 6505 deletions
|
@ -145,9 +145,9 @@ impl VimTestContext {
|
|||
assert_eq!(self.mode(), mode, "{}", self.assertion_context());
|
||||
}
|
||||
|
||||
pub fn assert_binding<const COUNT: usize>(
|
||||
pub fn assert_binding(
|
||||
&mut self,
|
||||
keystrokes: [&str; COUNT],
|
||||
keystrokes: &str,
|
||||
initial_state: &str,
|
||||
initial_mode: Mode,
|
||||
state_after: &str,
|
||||
|
@ -160,9 +160,9 @@ impl VimTestContext {
|
|||
assert_eq!(self.active_operator(), None, "{}", self.assertion_context());
|
||||
}
|
||||
|
||||
pub fn assert_binding_normal<const COUNT: usize>(
|
||||
pub fn assert_binding_normal(
|
||||
&mut self,
|
||||
keystrokes: [&str; COUNT],
|
||||
keystrokes: &str,
|
||||
initial_state: &str,
|
||||
state_after: &str,
|
||||
) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue