diff options
Diffstat (limited to 'test/references/init.lua')
-rw-r--r-- | test/references/init.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/references/init.lua b/test/references/init.lua index e24694d2..66e002a2 100644 --- a/test/references/init.lua +++ b/test/references/init.lua @@ -33,7 +33,7 @@ end function TEST(script) files.removeAll() - local target = catch_target(script) + local expect = catch_target(script) local start = script:find('<[?~]') local finish = script:find('[?~]>') local pos = (start + finish) // 2 + 1 @@ -46,9 +46,9 @@ function TEST(script) for i, result in ipairs(results) do positions[i] = { result.target.start, result.target.finish } end - assert(founded(target, positions)) + assert(founded(expect, positions)) else - assert(#target == 0) + assert(#expect == 0) end end |