From ee14efb50672227fd54e4c5ed591344c9170fd70 Mon Sep 17 00:00:00 2001 From: Nate Bosch Date: Fri, 10 Nov 2017 22:47:03 -0800 Subject: [PATCH] Fix tests for URI encoding Tests used and old function name and kept passing in the same vim session since rereading an autoload script does not drop removed function definitions. --- test/uri_test.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/uri_test.vim b/test/uri_test.vim index cecea358..e70cce78 100644 --- a/test/uri_test.vim +++ b/test/uri_test.vim @@ -1,11 +1,11 @@ function! TestUriEncode() abort - call assert_equal('foo/bar%20baz', lsc#uri#encodeFilePath('foo/bar baz')) - call assert_equal('foo/bar%23baz', lsc#uri#encodeFilePath('foo/bar#baz')) + call assert_equal('file://foo/bar%20baz', lsc#uri#documentUri('foo/bar baz')) + call assert_equal('file://foo/bar%23baz', lsc#uri#documentUri('foo/bar#baz')) endfunction function! TestUriDecode() abort - call assert_equal('foo/bar baz', lsc#uri#decodeFilePath('foo/bar%20baz')) - call assert_equal('foo/bar#baz', lsc#uri#decodeFilePath('foo/bar%23baz')) + call assert_equal('foo/bar baz', lsc#uri#documentPath('file://foo/bar%20baz')) + call assert_equal('foo/bar#baz', lsc#uri#documentPath('file://foo/bar%23baz')) endfunction function! s:RunTest(test)