test(lua): cover vim._with() with tests

Problem: `vim._with()` has many different use cases which are not
  covered with tests.

Solution: cover with tests. Some (many) test cases are intentionally
  marked as "pending" because they cover cases which don't work as
  expected at the moment (and fixing them requires specific knowledge of
  C codebase). Use them as a reference for future fixes.
  Also some of "can be nested" tests currently might pass only because
  the tested context doesn't work.
This commit is contained in:
Evgeni Chasnovski
2024-06-21 16:23:02 +03:00
parent 5581a95534
commit f8795365de
2 changed files with 851 additions and 256 deletions

File diff suppressed because it is too large Load Diff