From 83dbd60d0a3fbc8f2356d1add7422cc9ad1cec64 Mon Sep 17 00:00:00 2001 From: sumneko Date: Sun, 17 Oct 2021 14:20:31 +0800 Subject: Revert "stash test" This reverts commit 207fc22528020cc2f51128d817d43d9d26133c53. --- test/basic/textmerger.lua | 54 ----------------------------------------------- 1 file changed, 54 deletions(-) (limited to 'test') diff --git a/test/basic/textmerger.lua b/test/basic/textmerger.lua index 8cdbe5b7..a3a11f62 100644 --- a/test/basic/textmerger.lua +++ b/test/basic/textmerger.lua @@ -1,6 +1,5 @@ local files = require 'files' local tm = require 'text-merger' -local json = require 'json' local function TEST(source) return function (expect) @@ -218,56 +217,3 @@ print(12345) text = "", }, } - ----@diagnostic disable:trailing-space -TEST '' -[[x = { "test" } }]] -{ - json.decode [[{"range":{"end":{"line":0,"character":0},"start":{"line":0,"character":0}},"rangeLength":0,"text":"x"}]], - json.decode [[{"range":{"end":{"line":0,"character":1},"start":{"line":0,"character":1}},"rangeLength":0,"text":" "}]], - json.decode [[{"range":{"end":{"line":0,"character":2},"start":{"line":0,"character":2}},"rangeLength":0,"text":"="}]], - json.decode [[{"range":{"end":{"line":0,"character":3},"start":{"line":0,"character":3}},"rangeLength":0,"text":" "}]], ---[[ -x = -]] - json.decode [[{"range":{"end":{"line":0,"character":4},"start":{"line":0,"character":4}},"rangeLength":0,"text":"{ \r }"}]], ---[[ -x = { - } -]] - json.decode [[{"range":{"end":{"line":0,"character":7},"start":{"line":0,"character":6}},"rangeLength":1,"text":""}]], ---[[ -x = { } - json.decode [[{"range":{"end":{"line":0,"character":6},"start":{"line":0,"character":6}},"rangeLength":0,"text":"\"\r\""}]], ---[[ -x = { " -" } -]] - json.decode [[{"range":{"end":{"line":0,"character":8},"start":{"line":0,"character":7}},"rangeLength":1,"text":""}]], ---[[ -x = { "" } -]] - json.decode [[{"range":{"end":{"line":0,"character":7},"start":{"line":0,"character":7}},"rangeLength":0,"text":"t"}]], ---[[ -x = { "t" } -]] - json.decode [[{"range":{"end":{"line":0,"character":8},"start":{"line":0,"character":8}},"rangeLength":0,"text":"e"}]], - json.decode [[{"range":{"end":{"line":0,"character":9},"start":{"line":0,"character":9}},"rangeLength":0,"text":"s"}]], - json.decode [[{"range":{"end":{"line":0,"character":10},"start":{"line":0,"character":10}},"rangeLength":0,"text":"t"}]], ---[[ -x = { "test" } -]] - json.decode [[{"range":{"end":{"line":0,"character":13},"start":{"line":0,"character":5}},"rangeLength":8,"text":""}]], ---[[ -x = {} -]] - json.decode [[{"range":{"end":{"line":0,"character":6},"start":{"line":0,"character":4}},"rangeLength":2,"text":""}]], ---[[ -x = -]] - json.decode [[{"range":{"end":{"line":0,"character":4},"start":{"line":0,"character":4}},"rangeLength":0,"text":"{ \"test\" }"}]], ---[[ -x = { \"test\" } -]] -} ----@diagnostic enable:trailing-space -- cgit v1.2.3