Lines Matching full:join
186 tester('ntpath.join("")', '')
187 tester('ntpath.join("", "", "")', '')
188 tester('ntpath.join("a")', 'a')
189 tester('ntpath.join("/a")', '/a')
190 tester('ntpath.join("\\a")', '\\a')
191 tester('ntpath.join("a:")', 'a:')
192 tester('ntpath.join("a:", "\\b")', 'a:\\b')
193 tester('ntpath.join("a", "\\b")', '\\b')
194 tester('ntpath.join("a", "b", "c")', 'a\\b\\c')
195 tester('ntpath.join("a\\", "b", "c")', 'a\\b\\c')
196 tester('ntpath.join("a", "b\\", "c")', 'a\\b\\c')
197 tester('ntpath.join("a", "b", "\\c")', '\\c')
198 tester('ntpath.join("d:\\", "\\pleep")', 'd:\\pleep')
199 tester('ntpath.join("d:\\", "a", "b")', 'd:\\a\\b')
201 tester("ntpath.join('', 'a')", 'a')
202 tester("ntpath.join('', '', '', '', 'a')", 'a')
203 tester("ntpath.join('a', '')", 'a\\')
204 tester("ntpath.join('a', '', '', '', '')", 'a\\')
205 tester("ntpath.join('a\\', '')", 'a\\')
206 tester("ntpath.join('a\\', '', '', '', '')", 'a\\')
207 tester("ntpath.join('a/', '')", 'a/')
209 tester("ntpath.join('a/b', 'x/y')", 'a/b\\x/y')
210 tester("ntpath.join('/a/b', 'x/y')", '/a/b\\x/y')
211 tester("ntpath.join('/a/b/', 'x/y')", '/a/b/x/y')
212 tester("ntpath.join('c:', 'x/y')", 'c:x/y')
213 tester("ntpath.join('c:a/b', 'x/y')", 'c:a/b\\x/y')
214 tester("ntpath.join('c:a/b/', 'x/y')", 'c:a/b/x/y')
215 tester("ntpath.join('c:/', 'x/y')", 'c:/x/y')
216 tester("ntpath.join('c:/a/b', 'x/y')", 'c:/a/b\\x/y')
217 tester("ntpath.join('c:/a/b/', 'x/y')", 'c:/a/b/x/y')
218 tester("ntpath.join('//computer/share', 'x/y')", '//computer/share\\x/y')
219 tester("ntpath.join('//computer/share/', 'x/y')", '//computer/share/x/y')
220 tester("ntpath.join('//computer/share/a/b', 'x/y')", '//computer/share/a/b\\x/y')
222 tester("ntpath.join('a/b', '/x/y')", '/x/y')
223 tester("ntpath.join('/a/b', '/x/y')", '/x/y')
224 tester("ntpath.join('c:', '/x/y')", 'c:/x/y')
225 tester("ntpath.join('c:a/b', '/x/y')", 'c:/x/y')
226 tester("ntpath.join('c:/', '/x/y')", 'c:/x/y')
227 tester("ntpath.join('c:/a/b', '/x/y')", 'c:/x/y')
228 tester("ntpath.join('//computer/share', '/x/y')", '//computer/share/x/y')
229 tester("ntpath.join('//computer/share/', '/x/y')", '//computer/share/x/y')
230 tester("ntpath.join('//computer/share/a', '/x/y')", '//computer/share/x/y')
232 tester("ntpath.join('c:', 'C:x/y')", 'C:x/y')
233 tester("ntpath.join('c:a/b', 'C:x/y')", 'C:a/b\\x/y')
234 tester("ntpath.join('c:/', 'C:x/y')", 'C:/x/y')
235 tester("ntpath.join('c:/a/b', 'C:x/y')", 'C:/a/b\\x/y')
241 tester("ntpath.join(%r, %r)" % (x, y), y)
243 tester("ntpath.join('\\\\computer\\share\\', 'a', 'b')", '\\\\computer\\share\\a\\b')
244 tester("ntpath.join('\\\\computer\\share', 'a', 'b')", '\\\\computer\\share\\a\\b')
245 tester("ntpath.join('\\\\computer\\share', 'a\\b')", '\\\\computer\\share\\a\\b')
246 tester("ntpath.join('//computer/share/', 'a', 'b')", '//computer/share/a\\b')
247 tester("ntpath.join('//computer/share', 'a', 'b')", '//computer/share\\a\\b')
248 tester("ntpath.join('//computer/share', 'a/b')", '//computer/share\\a/b')
296 tester("ntpath.realpath('/'.join(['.'] * 100))", expected)
298 tester("ntpath.realpath('\\'.join(['.'] * 100))", expected)
305 tester("ntpath.realpath('/'.join(['..'] * 50))",
309 tester("ntpath.realpath('\\'.join(['..'] * 50))",
444 (ntpath.join(r, "x") for r in expected))
559 test_dir_long = ntpath.join(ABSTFN, "MyVeryLongDirectoryName")
563 test_file_long = ntpath.join(test_dir_long, "file.txt")
564 test_file_short = ntpath.join(test_dir_short, "file.txt")
922 self.assertEqual(self.path.join('a', FakePath('b'), 'c'),
923 self.path.join('a', 'b', 'c'))