Throw old tests out
This commit is contained in:
parent
97127fe750
commit
6f2b869b0c
3 changed files with 0 additions and 52 deletions
|
|
@ -1,16 +0,0 @@
|
||||||
from vimtest import cleanup, startNvim
|
|
||||||
|
|
||||||
|
|
||||||
nvim = startNvim()
|
|
||||||
|
|
||||||
|
|
||||||
def test_opening():
|
|
||||||
cleanup(nvim)
|
|
||||||
nvim.command("e outline.nim")
|
|
||||||
nvim.current.buffer[:] = [
|
|
||||||
"var x = 42",
|
|
||||||
"type Y = object",
|
|
||||||
" x, y: int"]
|
|
||||||
nvim.command(":NimOutline")
|
|
||||||
outlinewin = nvim.eval('bufwinnr("__nim_outline__")')
|
|
||||||
assert outlinewin > 0
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
||||||
from vimtest import cleanup, startNvim
|
|
||||||
|
|
||||||
nvim = startNvim()
|
|
||||||
|
|
||||||
|
|
||||||
def test_buffer():
|
|
||||||
cleanup(nvim)
|
|
||||||
nvim.command("norm ggdG")
|
|
||||||
nvim.command("norm ihello world")
|
|
||||||
assert nvim.current.buffer[:] == ["hello world"]
|
|
||||||
|
|
||||||
|
|
||||||
def test_another():
|
|
||||||
cleanup(nvim)
|
|
||||||
nvim.command("norm ihello world")
|
|
||||||
nvim.command("norm ggdG")
|
|
||||||
assert nvim.current.buffer[:] == ['']
|
|
||||||
|
|
||||||
|
|
||||||
def test_plugin_loading():
|
|
||||||
cleanup(nvim)
|
|
||||||
nvim.command("e testi.nim")
|
|
||||||
assert nvim.eval("&ft") == "nim"
|
|
||||||
assert nvim.eval('exists(":NimUsages")') == 2
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
||||||
from neovim import attach
|
|
||||||
|
|
||||||
|
|
||||||
def cleanup(nvim):
|
|
||||||
nvim.command('bd!')
|
|
||||||
nvim.command('new')
|
|
||||||
|
|
||||||
|
|
||||||
def startNvim():
|
|
||||||
nvim = attach("socket", path="/tmp/nvim")
|
|
||||||
cleanup(nvim)
|
|
||||||
return nvim
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue