Skip to content

Commit

Permalink
Fix tests for URI encoding
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
natebosch committed Nov 11, 2017
1 parent c12da6d commit ee14efb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/uri_test.vim
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit ee14efb

Please sign in to comment.