mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
tests: add failing test for incomplete arguments
This commit is contained in:
parent
3fbf280e34
commit
6e7c8c4fed
2 changed files with 11 additions and 1 deletions
6
tests/indent/php/unfinished-call.php
Normal file
6
tests/indent/php/unfinished-call.php
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
|
||||
Route::get(
|
||||
'/',
|
||||
1,
|
||||
aaaaaaaaaaaaaaaaaaaaaaaaa,
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
local Runner = require("tests.indent.common").Runner
|
||||
local XFAIL = require("tests.indent.common").XFAIL
|
||||
|
||||
local run = Runner:new(it, "tests/indent/php", {
|
||||
tabstop = 4,
|
||||
|
|
@ -10,7 +11,9 @@ local run = Runner:new(it, "tests/indent/php", {
|
|||
describe("indent PHP:", function()
|
||||
describe("whole file:", function()
|
||||
run:whole_file(".", {
|
||||
expected_failures = {},
|
||||
expected_failures = {
|
||||
"./unfinished-call.php",
|
||||
},
|
||||
})
|
||||
end)
|
||||
|
||||
|
|
@ -21,5 +24,6 @@ describe("indent PHP:", function()
|
|||
{ on_line = 5, text = "indendation with `enter` in insert mode is not correct", indent = 4 }
|
||||
)
|
||||
run:new_line("issue-2497.php", { on_line = 5, text = "$a =", indent = 4 })
|
||||
run:new_line("unfinished-call.php", { on_line = 6, text = "$a =", indent = 4 }, "shouldn't be 0", XFAIL)
|
||||
end)
|
||||
end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue