@@ -60,10 +60,10 @@ Deno.test("format returns buffer name string from Bufname instance", () => {
60
60
Deno . test ( "format encodes unusable characters in 'path'" , ( ) => {
61
61
const src = {
62
62
scheme : "denops" ,
63
- path : "<>|?*" ,
63
+ path : "/ <>|?*" ,
64
64
} ;
65
65
const dst = format ( src ) ;
66
- const exp = "denops://%3c%3e%7c%3f%2a" ;
66
+ const exp = "denops:/// %3c%3e%7c%3f%2a" ;
67
67
assertEquals ( dst , exp ) ;
68
68
} ) ;
69
69
Deno . test ( "format returns buffer name string from Bufname instance (with URLSearchParams)" , ( ) => {
@@ -131,15 +131,15 @@ Deno.test("format returns buffer name string from Bufname instance (with URLSear
131
131
Deno . test ( "format encodes ';' and '#' in 'path'" , ( ) => {
132
132
const src = {
133
133
scheme : "denops" ,
134
- path : "hello;world#hello" ,
134
+ path : "/ hello;world#hello" ,
135
135
} ;
136
136
const dst = format ( src ) ;
137
- const exp = "denops://hello%3bworld%23hello" ;
137
+ const exp = "denops:/// hello%3bworld%23hello" ;
138
138
assertEquals ( dst , exp ) ;
139
139
} ) ;
140
140
141
141
Deno . test ( "parse throws exception when 'expr' contains unusable characters" , ( ) => {
142
- const src = "denops://<>|?*" ;
142
+ const src = "denops:/// <>|?*" ;
143
143
assertThrows (
144
144
( ) => {
145
145
parse ( src ) ;
@@ -185,11 +185,11 @@ Deno.test("parse returns Bufname instance from buffer name", () => {
185
185
assertEquals ( dst , exp ) ;
186
186
} ) ;
187
187
Deno . test ( "parse decodes percent-encoded characters in 'path'" , ( ) => {
188
- const src = "denops://%3c%3e%7c%3f%2a" ;
188
+ const src = "denops:/// %3c%3e%7c%3f%2a" ;
189
189
const dst = parse ( src ) ;
190
190
const exp = {
191
191
scheme : "denops" ,
192
- path : "<>|?*" ,
192
+ path : "/ <>|?*" ,
193
193
} ;
194
194
assertEquals ( dst , exp ) ;
195
195
} ) ;
@@ -254,11 +254,11 @@ Deno.test("parse returns Bufname instance from buffer name (with params and frag
254
254
assertEquals ( dst , exp ) ;
255
255
} ) ;
256
256
Deno . test ( "parse decode percent-encoded characters (';' and '#') in 'path'" , ( ) => {
257
- const src = "denops://hello%3bworld%23hello" ;
257
+ const src = "denops:/// hello%3bworld%23hello" ;
258
258
const dst = parse ( src ) ;
259
259
const exp = {
260
260
scheme : "denops" ,
261
- path : "hello;world#hello" ,
261
+ path : "/ hello;world#hello" ,
262
262
} ;
263
263
assertEquals ( dst , exp ) ;
264
264
} ) ;
0 commit comments