From 1c8095439f8d738390b3cc19fa3f82853dd89f95 Mon Sep 17 00:00:00 2001 From: sumneko Date: Sun, 23 Jan 2022 03:43:08 +0800 Subject: fix test --- test/tclient/tests/multi-workspace.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'test/tclient') diff --git a/test/tclient/tests/multi-workspace.lua b/test/tclient/tests/multi-workspace.lua index 99b7f122..02ebacbd 100644 --- a/test/tclient/tests/multi-workspace.lua +++ b/test/tclient/tests/multi-workspace.lua @@ -4,6 +4,7 @@ local util = require 'utility' local furi = require 'file-uri' local ws = require 'workspace' local files = require 'files' +local scope = require 'workspace.scope' local rootPath = LOGPATH .. '/multi-workspace' local rootUri = furi.encode(rootPath) @@ -66,11 +67,11 @@ lclient():start(function (client) assert(files.getState(rootUri .. '/lb1/test.lua') ~= nil) assert(files.getState(rootUri .. '/lb2/test.lua') ~= nil) - assert(ws.getScope(rootUri .. '/ws1/test.lua').uri == rootUri .. '/ws1') - assert(ws.getScope(rootUri .. '/ws2/test.lua').uri == rootUri .. '/ws2') - assert(ws.getScope(rootUri .. '/share/test.lua').uri == rootUri .. '/ws1') - assert(ws.getScope(rootUri .. '/lb1/test.lua').uri == rootUri .. '/ws1') - assert(ws.getScope(rootUri .. '/lb2/test.lua').uri == rootUri .. '/ws2') + assert(scope.getScope(rootUri .. '/ws1/test.lua').uri == rootUri .. '/ws1') + assert(scope.getScope(rootUri .. '/ws2/test.lua').uri == rootUri .. '/ws2') + assert(scope.getScope(rootUri .. '/share/test.lua').uri == rootUri .. '/ws1') + assert(scope.getScope(rootUri .. '/lb1/test.lua').uri == rootUri .. '/ws1') + assert(scope.getScope(rootUri .. '/lb2/test.lua').uri == rootUri .. '/ws2') assert(files.isLibrary(rootUri .. '/ws1/test.lua') == false) assert(files.isLibrary(rootUri .. '/ws2/test.lua') == false) -- cgit v1.2.3