Lines Matching refs:test
50 static void test(const char *base, const char *rel)
105 test_decompose("test?url=http://server/path");
109 test(NULL, "baz");
110 test("/foo/bar", "baz");
111 test("/foo/bar", "../baz");
112 test("/foo/bar", "/baz");
113 test("/foo/bar", "../../../baz");
114 test("http://server/foo/", "baz");
115 test("http://server/foo/bar", "baz");
116 test("http://server/foo/", "../baz");
117 test("http://server/foo/bar/123", "../../baz");
118 test("http://server/foo/bar/123", "/baz");
119 test("http://server/foo/bar/123", "https://other/url");
120 test("http://server/foo/bar?param=value/with/slashes", "/baz");
121 test("http://server/foo/bar?param&otherparam", "?someparam");
122 test("http://server/foo/bar", "//other/url");
123 test("http://server/foo/bar", "../../../../../other/url");
124 test("http://server/foo/bar", "/../../../../../other/url");
125 test("http://server/foo/bar", "/test/../../../../../other/url");
126 test("http://server/foo/bar", "/test/../../test/../../../other/url");
127 test("http://server/foo/bar", "file:../baz/qux");
128 test("http://server/foo//bar/", "../../");
129 test("file:../tmp/foo", "../bar/");
130 test("file:../tmp/foo", "file:../bar/");
131 test("http://server/foo/bar", "./");
132 test("http://server/foo/bar", ".dotfile");
133 test("http://server/foo/bar", "..doubledotfile");
134 test("http://server/foo/bar", "double..dotfile");
135 test("http://server/foo/bar", "doubledotfile..");
136 test("file1", "file2");
137 test("dir/file1", "file2");
138 test("dir/file1", "../file2");
139 test("dir\\file1", "file2");
140 test("\\\\srv\\shr\\file", "..\\..\\dummy");
141 test("\\\\srv\\shr\\file", "dummy");
142 test("\\\\srv\\shr\\file", "\\\\srv2\\shr2\\file2");
143 test("\\\\srv\\shr\\file", "d:/file");
144 test("C:\\dir\\a", "..\\file");
145 test("C:\\dir\\a", "\\\\srv\\shr\\file");
146 test("C:\\dir\\a", "d:\\file");
147 test("http://a/b", "\\\\srv\\shr\\file");
148 test("http://a/b", "//srv/shr/file");
149 test("http://a/b", "d:\\file");
150 test("http://a/b", "C:/file");
153 test("http://a/b/c/d;p?q", "g:h"); // g:h
154 test("http://a/b/c/d;p?q", "g"); // http://a/b/c/g
155 test("http://a/b/c/d;p?q", "./g"); // http://a/b/c/g
156 test("http://a/b/c/d;p?q", "g/"); // http://a/b/c/g/
157 test("http://a/b/c/d;p?q", "/g"); // http://a/g
158 test("http://a/b/c/d;p?q", "//g"); // http://g
159 test("http://a/b/c/d;p?q", "?y"); // http://a/b/c/d;p?y
160 test("http://a/b/c/d;p?q", "g?y"); // http://a/b/c/g?y
161 test("http://a/b/c/d;p?q", "#s"); // http://a/b/c/d;p?q#s
162 test("http://a/b/c/d;p?q", "g#s"); // http://a/b/c/g#s
163 test("http://a/b/c/d;p?q", "g?y#s"); // http://a/b/c/g?y#s
164 test("http://a/b/c/d;p?q", ";x"); // http://a/b/c/;x
165 test("http://a/b/c/d;p?q", "g;x"); // http://a/b/c/g;x
166 test("http://a/b/c/d;p?q", "g;x?y#s"); // http://a/b/c/g;x?y#s
167 test("http://a/b/c/d;p?q", ""); // http://a/b/c/d;p?q
168 test("http://a/b/c/d;p?q", "."); // http://a/b/c/
169 test("http://a/b/c/d;p?q", "./"); // http://a/b/c/
170 test("http://a/b/c/d;p?q", ".."); // http://a/b/
171 test("http://a/b/c/d;p?q", "../"); // http://a/b/
172 test("http://a/b/c/d;p?q", "../g"); // http://a/b/g
173 test("http://a/b/c/d;p?q", "../.."); // http://a/
174 test("http://a/b/c/d;p?q", "../../"); // http://a/
175 test("http://a/b/c/d;p?q", "../../g"); // http://a/g
176 test("http://a/b/c/d;p?q", "../../../g"); // http://a/g
177 test("http://a/b/c/d;p?q", "../../../../g"); // http://a/g
178 test("http://a/b/c/d;p?q", "/./g"); // http://a/g
179 test("http://a/b/c/d;p?q", "/../g"); // http://a/g
180 test("http://a/b/c/d;p?q", "g."); // http://a/b/c/g.
181 test("http://a/b/c/d;p?q", ".g"); // http://a/b/c/.g
182 test("http://a/b/c/d;p?q", "g.."); // http://a/b/c/g..
183 test("http://a/b/c/d;p?q", "..g"); // http://a/b/c/..g
184 test("http://a/b/c/d;p?q", "./../g"); // http://a/b/g
185 test("http://a/b/c/d;p?q", "./g/."); // http://a/b/c/g/
186 test("http://a/b/c/d;p?q", "g/./h"); // http://a/b/c/g/h
187 test("http://a/b/c/d;p?q", "g/../h"); // http://a/b/c/h
188 test("http://a/b/c/d;p?q", "g;x=1/./y"); // http://a/b/c/g;x=1/y
189 test("http://a/b/c/d;p?q", "g;x=1/../y"); // http://a/b/c/y
190 test("http://a/b/c/d;p?q", "g?y/./x"); // http://a/b/c/g?y/./x
191 test("http://a/b/c/d;p?q", "g?y/../x"); // http://a/b/c/g?y/../x
192 test("http://a/b/c/d;p?q", "g#s/./x"); // http://a/b/c/g#s/./x
193 test("http://a/b/c/d;p?q", "g#s/../x"); // http://a/b/c/g#s/../x