mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 16:01:32 +01:00 
			
		
		
		
	Relative URL tests
This commit is contained in:
		
							parent
							
								
									b1d7348a20
								
							
						
					
					
						commit
						e14ea9979b
					
				| @ -75,6 +75,10 @@ func TestURLJoin(t *testing.T) { | ||||
| 			"https://try.gitea.io/", "/a/b/", "/c/"), | ||||
| 		newTest("https://try.gitea.io/a/c", | ||||
| 			"https://try.gitea.io/", "/a/./b/", "../c/"), | ||||
| 		newTest("a/b/c", | ||||
| 			"a", "b/c/"), | ||||
| 		newTest("a/b/d", | ||||
| 			"a/", "b/c/", "/../d/"), | ||||
| 	} { | ||||
| 		assert.Equal(t, test.Expected, URLJoin(test.Base, test.Elements...)) | ||||
| 	} | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user